Skip to content

Commit a1cfc96

Browse files
committedJul 11, 2023
8311245: JFR: Remove t.printStackTrace() in PeriodicEvents
Reviewed-by: mgronlun
1 parent 4b1403d commit a1cfc96

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed
 

‎src/jdk.jfr/share/classes/jdk/jfr/internal/periodic/PeriodicEvents.java

+2-10
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,8 @@ public static void doChunkEnd() {
9696

9797
// Only to be called from periodic task thread
9898
public static long doPeriodic() {
99-
try {
100-
return runPeriodic(JVM.counterTime());
101-
} catch (Throwable t) {
102-
t.printStackTrace();
103-
throw t;
104-
}
105-
}
106-
107-
// Code copied from prior native implementation
108-
private static long runPeriodic(long eventTimestamp) {
99+
long eventTimestamp = JVM.counterTime();
100+
// Code copied from prior native implementation
109101
long last = lastTimeMillis;
110102
// The interval for periodic events is typically at least 1 s, so
111103
// System.currentTimeMillis() is sufficient. JVM.counterTime() lacks

0 commit comments

Comments
 (0)
Please sign in to comment.