Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
/ jdk21 Public archive

Commit

Permalink
8311245: JFR: Remove t.printStackTrace() in PeriodicEvents
Browse files Browse the repository at this point in the history
Reviewed-by: mgronlun
Backport-of: a1cfc9695405fe517fae1b9f760ae42b85f66be9
  • Loading branch information
egahlin committed Jul 11, 2023
1 parent 8808ec3 commit c97db0d
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 c97db0d

@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.