-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b15
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8328471 | 21.0.4 | Long Yang | P4 | Resolved | Fixed | b01 |
UNSAFE.park(true, System.currentTimeMillis() + 1000);
UNSAFE.park(false, 2000L * 1000 * 1000);
jfr view jdk.ThreadPark test.jfr
Java Thread Park
Start Time Duration Event Thread Stack Trace Class Parked On Park Timeout Park Until Address of Object Pa...
---------- -------- ------------ ----------------------- --------------- ------------ ---------- -----------------------
20:13:21 1.00 s main jdk.internal.misc.Un... N/A N/A 20:13:22 0x00000000
20:13:22 2.00 s main jdk.internal.misc.Un... N/A 2.00 s 08:05:43 0x00000000
If the parking method is not absolute, the real value of "until" in JFR event is Long.MIN_VALUE, which will be convert back to java.time.Instant.MIN, but JFR view displays this value as '08:05:43' of my timezone.
This is somewhat misleading, better to show N/A.
UNSAFE.park(false, 2000L * 1000 * 1000);
jfr view jdk.ThreadPark test.jfr
Java Thread Park
Start Time Duration Event Thread Stack Trace Class Parked On Park Timeout Park Until Address of Object Pa...
---------- -------- ------------ ----------------------- --------------- ------------ ---------- -----------------------
20:13:21 1.00 s main jdk.internal.misc.Un... N/A N/A 20:13:22 0x00000000
20:13:22 2.00 s main jdk.internal.misc.Un... N/A 2.00 s 08:05:43 0x00000000
If the parking method is not absolute, the real value of "until" in JFR event is Long.MIN_VALUE, which will be convert back to java.time.Instant.MIN, but JFR view displays this value as '08:05:43' of my timezone.
This is somewhat misleading, better to show N/A.
- backported by
-
JDK-8328471 JFR view: the "Park Until" field of jdk.ThreadPark is invalid if the parking method is not absolute
- Resolved