We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b1403d commit a1cfc96Copy full SHA for a1cfc96
src/jdk.jfr/share/classes/jdk/jfr/internal/periodic/PeriodicEvents.java
@@ -96,16 +96,8 @@ public static void doChunkEnd() {
96
97
// Only to be called from periodic task thread
98
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) {
+ long eventTimestamp = JVM.counterTime();
+ // Code copied from prior native implementation
109
long last = lastTimeMillis;
110
// The interval for periodic events is typically at least 1 s, so
111
// System.currentTimeMillis() is sufficient. JVM.counterTime() lacks
0 commit comments