Skip to content

Commit 2de8cfa

Browse files
Long YangDamonFool
authored andcommitted
8327799: JFR view: the "Park Until" field of jdk.ThreadPark is invalid if the parking method is not absolute
Backport-of: 6f8b0a33fa15f1dfc8b0c116375df0f90d9d8759
1 parent d1af31b commit 2de8cfa

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
@@ -272,6 +272,9 @@ private static List<String> decodeDescriptors(String descriptor, String arraySiz
272272
}
273273

274274
public static String formatTimestamp(Instant instant) {
275+
if (Instant.MIN.equals(instant)) {
276+
return "N/A";
277+
}
275278
return LocalTime.ofInstant(instant, ZoneId.systemDefault()).format(DATE_FORMAT);
276279
}
277280
}

0 commit comments

Comments
 (0)