8327799: JFR view: the "Park Until" field of jdk.ThreadPark is invalid if the parking method is not absolute

Reviewed-by: egahlin
This commit is contained in:
Long Yang
2024-03-14 11:25:06 +00:00
committed by Denghui Dong
parent 1d34b74a64
commit 6f8b0a33fa

View File

@@ -343,6 +343,9 @@ public final class ValueFormatter {
}
public static String formatTimestamp(Instant instant) {
if (Instant.MIN.equals(instant)) {
return "N/A";
}
return LocalTime.ofInstant(instant, ZoneId.systemDefault()).format(DATE_FORMAT);
}
}