diff --git a/jdk/src/share/classes/sun/management/ThreadImpl.java b/jdk/src/share/classes/sun/management/ThreadImpl.java index 4eb09143719..8192254d73c 100644 --- a/jdk/src/share/classes/sun/management/ThreadImpl.java +++ b/jdk/src/share/classes/sun/management/ThreadImpl.java @@ -259,7 +259,7 @@ class ThreadImpl implements com.sun.management.ThreadMXBean { if (id == Thread.currentThread().getId()) { id = 0; } - getThreadTotalCpuTime0(id); + times[0] = getThreadTotalCpuTime0(id); } else { getThreadTotalCpuTime1(ids, times); }