Skip to content

Commit

Permalink
8327799: JFR view: the "Park Until" field of jdk.ThreadPark is invali…
Browse files Browse the repository at this point in the history
…d if the parking method is not absolute

Reviewed-by: egahlin
  • Loading branch information
Long Yang authored and D-D-H committed Mar 14, 2024
1 parent 1d34b74 commit 6f8b0a3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ public static List<String> decodeDescriptors(String descriptor, String arraySize
}

public static String formatTimestamp(Instant instant) {
if (Instant.MIN.equals(instant)) {
return "N/A";
}
return LocalTime.ofInstant(instant, ZoneId.systemDefault()).format(DATE_FORMAT);
}
}

1 comment on commit 6f8b0a3

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.