Skip to content

Commit

Permalink
8311245: JFR: Remove t.printStackTrace() in PeriodicEvents
Browse files Browse the repository at this point in the history
Reviewed-by: mgronlun
  • Loading branch information
egahlin committed Jul 11, 2023
1 parent 4b1403d commit a1cfc96
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,8 @@ public static void doChunkEnd() {

// 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
Expand Down

1 comment on commit a1cfc96

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.