8311245: JFR: Remove t.printStackTrace() in PeriodicEvents

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2023-07-11 11:03:36 +00:00
parent 4b1403d06b
commit a1cfc96954

@ -96,16 +96,8 @@ public final class PeriodicEvents {
// Only to be called from periodic task thread
public static long doPeriodic() {
try {
return runPeriodic(JVM.counterTime());
} catch (Throwable t) {
t.printStackTrace();
throw t;
}
}
// Code copied from prior native implementation
private static long runPeriodic(long eventTimestamp) {
long eventTimestamp = JVM.counterTime();
// Code copied from prior native implementation
long last = lastTimeMillis;
// The interval for periodic events is typically at least 1 s, so
// System.currentTimeMillis() is sufficient. JVM.counterTime() lacks