From 14a381f250d0f868be6077c16afcfb4839a3daad Mon Sep 17 00:00:00 2001 From: Paul Hohensee Date: Fri, 21 Jan 2011 07:29:59 -0500 Subject: [PATCH] 7013682: two test checking cpuTime filed java/lang/management/ThreadMXBean Typo in 6173675 fix dropped getThreadCpuTime(long) result on the floor. Reviewed-by: mchung, dholmes --- jdk/src/share/classes/sun/management/ThreadImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }