8165675: Trace event for thread park has incorrect unit for timeout

Reviewed-by: mgronlun
This commit is contained in:
Erik Gahlin 2018-12-12 18:35:26 +01:00
parent b7bd4bccbf
commit 85ffc2803c
8 changed files with 158 additions and 20 deletions

View file

@ -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) {