Skip to content

Commit 8371854

Browse files
committed
8327799: JFR view: the "Park Until" field of jdk.ThreadPark is invalid if the parking method is not absolute
1 parent 2cf3524 commit 8371854

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/jdk.jfr/share/classes/jdk/jfr/internal/util/ValueFormatter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ public static List<String> decodeDescriptors(String descriptor, String arraySize
343343
}
344344

345345
public static String formatTimestamp(Instant instant) {
346+
if (Instant.MIN.equals(instant)) {
347+
return "N/A";
348+
}
346349
return LocalTime.ofInstant(instant, ZoneId.systemDefault()).format(DATE_FORMAT);
347350
}
348351
}

0 commit comments

Comments
 (0)