jdk/src/share/classes/sun/management/ThreadImpl.java
changeset 4156 acaa49a2768a
parent 3111 fefdeafb7ab9
child 5506 202f599c92aa
equal deleted inserted replaced
4155:460e37d40f12 4156:acaa49a2768a
    27 
    27 
    28 import java.lang.management.ThreadMXBean;
    28 import java.lang.management.ThreadMXBean;
    29 import java.lang.management.ManagementFactory;
    29 import java.lang.management.ManagementFactory;
    30 
    30 
    31 import java.lang.management.ThreadInfo;
    31 import java.lang.management.ThreadInfo;
    32 import java.lang.management.LockInfo;
       
    33 import java.lang.management.MonitorInfo;
       
    34 import java.util.Map;
       
    35 import java.util.HashMap;
       
    36 
    32 
    37 import javax.management.ObjectName;
    33 import javax.management.ObjectName;
    38 
    34 
    39 /**
    35 /**
    40  * Implementation class for the thread subsystem.
    36  * Implementation class for the thread subsystem.
   413 
   409 
   414     // tid == 0 to reset contention times for all threads
   410     // tid == 0 to reset contention times for all threads
   415     private static native void resetContentionTimes0(long tid);
   411     private static native void resetContentionTimes0(long tid);
   416 
   412 
   417     public ObjectName getObjectName() {
   413     public ObjectName getObjectName() {
   418         return ObjectName.valueOf(ManagementFactory.THREAD_MXBEAN_NAME);
   414         return Util.newObjectName(ManagementFactory.THREAD_MXBEAN_NAME);
   419     }
   415     }
   420 
   416 
   421 }
   417 }