jdk/src/java.base/share/classes/sun/misc/VM.java
changeset 32649 2ee9017c7597
parent 30655 d83f50188ca9
child 34525 14d2d84cae6d
equal deleted inserted replaced
32648:1fa861caf840 32649:2ee9017c7597
   352 
   352 
   353     /* The threadStatus field is set by the VM at state transition
   353     /* The threadStatus field is set by the VM at state transition
   354      * in the hotspot implementation. Its value is set according to
   354      * in the hotspot implementation. Its value is set according to
   355      * the JVM TI specification GetThreadState function.
   355      * the JVM TI specification GetThreadState function.
   356      */
   356      */
   357     private final static int JVMTI_THREAD_STATE_ALIVE = 0x0001;
   357     private static final int JVMTI_THREAD_STATE_ALIVE = 0x0001;
   358     private final static int JVMTI_THREAD_STATE_TERMINATED = 0x0002;
   358     private static final int JVMTI_THREAD_STATE_TERMINATED = 0x0002;
   359     private final static int JVMTI_THREAD_STATE_RUNNABLE = 0x0004;
   359     private static final int JVMTI_THREAD_STATE_RUNNABLE = 0x0004;
   360     private final static int JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER = 0x0400;
   360     private static final int JVMTI_THREAD_STATE_BLOCKED_ON_MONITOR_ENTER = 0x0400;
   361     private final static int JVMTI_THREAD_STATE_WAITING_INDEFINITELY = 0x0010;
   361     private static final int JVMTI_THREAD_STATE_WAITING_INDEFINITELY = 0x0010;
   362     private final static int JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT = 0x0020;
   362     private static final int JVMTI_THREAD_STATE_WAITING_WITH_TIMEOUT = 0x0020;
   363 
   363 
   364     /*
   364     /*
   365      * Returns the first non-null class loader up the execution stack,
   365      * Returns the first non-null class loader up the execution stack,
   366      * or null if only code from the null class loader is on the stack.
   366      * or null if only code from the null class loader is on the stack.
   367      */
   367      */
   433     public static native long getNanoTimeAdjustment(long offsetInSeconds);
   433     public static native long getNanoTimeAdjustment(long offsetInSeconds);
   434 
   434 
   435     static {
   435     static {
   436         initialize();
   436         initialize();
   437     }
   437     }
   438     private native static void initialize();
   438     private static native void initialize();
   439 }
   439 }