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
--- 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);
}