mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8165675: Trace event for thread park has incorrect unit for timeout
Reviewed-by: mgronlun
This commit is contained in:
parent
b7bd4bccbf
commit
85ffc2803c
8 changed files with 158 additions and 20 deletions
|
@ -101,6 +101,9 @@ public final class EventHelper {
|
|||
*/
|
||||
private static String getDurationString(Instant start) {
|
||||
if (start != null) {
|
||||
if (start.equals(Instant.MIN)) {
|
||||
return "N/A";
|
||||
}
|
||||
Duration duration = Duration.between(start, Instant.now());
|
||||
long micros = duration.toNanos() / 1_000;
|
||||
if (micros < 1_000_000) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue