changeset 3569:64ef2f52d781

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
author phh
date Fri, 21 Jan 2011 07:29:59 -0500
parents c73c178159d8
children cd13b2114f2e
files src/share/classes/sun/management/ThreadImpl.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/management/ThreadImpl.java	Thu Jan 20 19:34:40 2011 -0500
+++ b/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);
             }