Java Code Examples for sun.jvm.hotspot.oops.OopUtilities#threadOopGetThreadStatus()
The following examples show how to use
sun.jvm.hotspot.oops.OopUtilities#threadOopGetThreadStatus() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ThreadReferenceImpl.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private int jvmtiGetThreadState() { // get most state bits int state = OopUtilities.threadOopGetThreadStatus(ref()); // add more state bits if (myJavaThread != null) { JavaThreadState jts = myJavaThread.getThreadState(); if (myJavaThread.isBeingExtSuspended()) { state |= JVMTI_THREAD_STATE_SUSPENDED; } if (jts == JavaThreadState.IN_NATIVE) { state |= JVMTI_THREAD_STATE_IN_NATIVE; } OSThread osThread = myJavaThread.getOSThread(); if (osThread != null && osThread.interrupted()) { state |= JVMTI_THREAD_STATE_INTERRUPTED; } } return state; }
Example 2
Source File: ThreadReferenceImpl.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private int jvmtiGetThreadState() { // get most state bits int state = OopUtilities.threadOopGetThreadStatus(ref()); // add more state bits if (myJavaThread != null) { JavaThreadState jts = myJavaThread.getThreadState(); if (myJavaThread.isBeingExtSuspended()) { state |= JVMTI_THREAD_STATE_SUSPENDED; } if (jts == JavaThreadState.IN_NATIVE) { state |= JVMTI_THREAD_STATE_IN_NATIVE; } OSThread osThread = myJavaThread.getOSThread(); if (osThread != null && osThread.interrupted()) { state |= JVMTI_THREAD_STATE_INTERRUPTED; } } return state; }
Example 3
Source File: ThreadReferenceImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private int jvmtiGetThreadState() { // get most state bits int state = OopUtilities.threadOopGetThreadStatus(ref()); // add more state bits if (myJavaThread != null) { JavaThreadState jts = myJavaThread.getThreadState(); if (myJavaThread.isBeingExtSuspended()) { state |= JVMTI_THREAD_STATE_SUSPENDED; } if (jts == JavaThreadState.IN_NATIVE) { state |= JVMTI_THREAD_STATE_IN_NATIVE; } OSThread osThread = myJavaThread.getOSThread(); if (osThread != null && osThread.interrupted()) { state |= JVMTI_THREAD_STATE_INTERRUPTED; } } return state; }
Example 4
Source File: ThreadReferenceImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private int jvmtiGetThreadState() { // get most state bits int state = OopUtilities.threadOopGetThreadStatus(ref()); // add more state bits if (myJavaThread != null) { JavaThreadState jts = myJavaThread.getThreadState(); if (myJavaThread.isBeingExtSuspended()) { state |= JVMTI_THREAD_STATE_SUSPENDED; } if (jts == JavaThreadState.IN_NATIVE) { state |= JVMTI_THREAD_STATE_IN_NATIVE; } OSThread osThread = myJavaThread.getOSThread(); if (osThread != null && osThread.interrupted()) { state |= JVMTI_THREAD_STATE_INTERRUPTED; } } return state; }
Example 5
Source File: ThreadReferenceImpl.java From hottub with GNU General Public License v2.0 | 6 votes |
private int jvmtiGetThreadState() { // get most state bits int state = OopUtilities.threadOopGetThreadStatus(ref()); // add more state bits if (myJavaThread != null) { JavaThreadState jts = myJavaThread.getThreadState(); if (myJavaThread.isBeingExtSuspended()) { state |= JVMTI_THREAD_STATE_SUSPENDED; } if (jts == JavaThreadState.IN_NATIVE) { state |= JVMTI_THREAD_STATE_IN_NATIVE; } OSThread osThread = myJavaThread.getOSThread(); if (osThread != null && osThread.interrupted()) { state |= JVMTI_THREAD_STATE_INTERRUPTED; } } return state; }
Example 6
Source File: ThreadReferenceImpl.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private int jvmtiGetThreadState() { // get most state bits int state = OopUtilities.threadOopGetThreadStatus(ref()); // add more state bits if (myJavaThread != null) { JavaThreadState jts = myJavaThread.getThreadState(); if (myJavaThread.isBeingExtSuspended()) { state |= JVMTI_THREAD_STATE_SUSPENDED; } if (jts == JavaThreadState.IN_NATIVE) { state |= JVMTI_THREAD_STATE_IN_NATIVE; } OSThread osThread = myJavaThread.getOSThread(); if (osThread != null && osThread.interrupted()) { state |= JVMTI_THREAD_STATE_INTERRUPTED; } } return state; }
Example 7
Source File: ThreadReferenceImpl.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private int jvmtiGetThreadState() { // get most state bits int state = OopUtilities.threadOopGetThreadStatus(ref()); // add more state bits if (myJavaThread != null) { JavaThreadState jts = myJavaThread.getThreadState(); if (myJavaThread.isBeingExtSuspended()) { state |= JVMTI_THREAD_STATE_SUSPENDED; } if (jts == JavaThreadState.IN_NATIVE) { state |= JVMTI_THREAD_STATE_IN_NATIVE; } OSThread osThread = myJavaThread.getOSThread(); if (osThread != null && osThread.interrupted()) { state |= JVMTI_THREAD_STATE_INTERRUPTED; } } return state; }