7013682: two test checking cpuTime filed java/lang/management/ThreadMXBean
authorphh
Fri, 21 Jan 2011 07:29:59 -0500
changeset 8002 5d022b92fbef
parent 8001 192adf3627b7
child 8003 ffba260d6dfa
7013682: two test checking cpuTime filed java/lang/management/ThreadMXBean Summary: Typo in 6173675 fix dropped getThreadCpuTime(long) result on the floor. Reviewed-by: mchung, dholmes
jdk/src/share/classes/sun/management/ThreadImpl.java
--- a/jdk/src/share/classes/sun/management/ThreadImpl.java	Thu Jan 20 19:34:40 2011 -0500
+++ b/jdk/src/share/classes/sun/management/ThreadImpl.java	Fri Jan 21 07:29:59 2011 -0500
@@ -259,7 +259,7 @@
                 if (id == Thread.currentThread().getId()) {
                     id = 0;
                 }
-                getThreadTotalCpuTime0(id);
+                times[0] = getThreadTotalCpuTime0(id);
             } else {
                 getThreadTotalCpuTime1(ids, times);
             }