Java Code Examples for sun.jvm.hotspot.oops.OopUtilities#threadOopGetJavaThread()

The following examples show how to use sun.jvm.hotspot.oops.OopUtilities#threadOopGetJavaThread() . 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: ThreadGroupReferenceImpl.java    From TencentKona-8 with GNU General Public License v2.0 6 votes vote down vote up
public List threads() {
    // Each element of this array is the Oop for a thread;
    // NOTE it is not the JavaThread that we need to create
    // a ThreadReferenceImpl.
    Oop[] myThreads = OopUtilities.threadGroupOopGetThreads(ref());

    ArrayList myList = new ArrayList(myThreads.length);
    for (int ii = 0; ii < myThreads.length; ii++) {
        JavaThread jt = OopUtilities.threadOopGetJavaThread(myThreads[ii]);
        if (jt != null) {
            ThreadReferenceImpl xx = (ThreadReferenceImpl)vm.threadMirror(jt);
            myList.add(xx);
        }
    }
    return myList;
}
 
Example 2
Source File: ThreadGroupReferenceImpl.java    From jdk8u60 with GNU General Public License v2.0 6 votes vote down vote up
public List threads() {
    // Each element of this array is the Oop for a thread;
    // NOTE it is not the JavaThread that we need to create
    // a ThreadReferenceImpl.
    Oop[] myThreads = OopUtilities.threadGroupOopGetThreads(ref());

    ArrayList myList = new ArrayList(myThreads.length);
    for (int ii = 0; ii < myThreads.length; ii++) {
        JavaThread jt = OopUtilities.threadOopGetJavaThread(myThreads[ii]);
        if (jt != null) {
            ThreadReferenceImpl xx = (ThreadReferenceImpl)vm.threadMirror(jt);
            myList.add(xx);
        }
    }
    return myList;
}
 
Example 3
Source File: ThreadGroupReferenceImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 6 votes vote down vote up
public List threads() {
    // Each element of this array is the Oop for a thread;
    // NOTE it is not the JavaThread that we need to create
    // a ThreadReferenceImpl.
    Oop[] myThreads = OopUtilities.threadGroupOopGetThreads(ref());

    ArrayList myList = new ArrayList(myThreads.length);
    for (int ii = 0; ii < myThreads.length; ii++) {
        JavaThread jt = OopUtilities.threadOopGetJavaThread(myThreads[ii]);
        if (jt != null) {
            ThreadReferenceImpl xx = (ThreadReferenceImpl)vm.threadMirror(jt);
            myList.add(xx);
        }
    }
    return myList;
}
 
Example 4
Source File: ThreadGroupReferenceImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 6 votes vote down vote up
public List threads() {
    // Each element of this array is the Oop for a thread;
    // NOTE it is not the JavaThread that we need to create
    // a ThreadReferenceImpl.
    Oop[] myThreads = OopUtilities.threadGroupOopGetThreads(ref());

    ArrayList myList = new ArrayList(myThreads.length);
    for (int ii = 0; ii < myThreads.length; ii++) {
        JavaThread jt = OopUtilities.threadOopGetJavaThread(myThreads[ii]);
        if (jt != null) {
            ThreadReferenceImpl xx = (ThreadReferenceImpl)vm.threadMirror(jt);
            myList.add(xx);
        }
    }
    return myList;
}
 
Example 5
Source File: ThreadGroupReferenceImpl.java    From hottub with GNU General Public License v2.0 6 votes vote down vote up
public List threads() {
    // Each element of this array is the Oop for a thread;
    // NOTE it is not the JavaThread that we need to create
    // a ThreadReferenceImpl.
    Oop[] myThreads = OopUtilities.threadGroupOopGetThreads(ref());

    ArrayList myList = new ArrayList(myThreads.length);
    for (int ii = 0; ii < myThreads.length; ii++) {
        JavaThread jt = OopUtilities.threadOopGetJavaThread(myThreads[ii]);
        if (jt != null) {
            ThreadReferenceImpl xx = (ThreadReferenceImpl)vm.threadMirror(jt);
            myList.add(xx);
        }
    }
    return myList;
}
 
Example 6
Source File: ThreadGroupReferenceImpl.java    From openjdk-8-source with GNU General Public License v2.0 6 votes vote down vote up
public List threads() {
    // Each element of this array is the Oop for a thread;
    // NOTE it is not the JavaThread that we need to create
    // a ThreadReferenceImpl.
    Oop[] myThreads = OopUtilities.threadGroupOopGetThreads(ref());

    ArrayList myList = new ArrayList(myThreads.length);
    for (int ii = 0; ii < myThreads.length; ii++) {
        JavaThread jt = OopUtilities.threadOopGetJavaThread(myThreads[ii]);
        if (jt != null) {
            ThreadReferenceImpl xx = (ThreadReferenceImpl)vm.threadMirror(jt);
            myList.add(xx);
        }
    }
    return myList;
}
 
Example 7
Source File: ThreadGroupReferenceImpl.java    From openjdk-8 with GNU General Public License v2.0 6 votes vote down vote up
public List threads() {
    // Each element of this array is the Oop for a thread;
    // NOTE it is not the JavaThread that we need to create
    // a ThreadReferenceImpl.
    Oop[] myThreads = OopUtilities.threadGroupOopGetThreads(ref());

    ArrayList myList = new ArrayList(myThreads.length);
    for (int ii = 0; ii < myThreads.length; ii++) {
        JavaThread jt = OopUtilities.threadOopGetJavaThread(myThreads[ii]);
        if (jt != null) {
            ThreadReferenceImpl xx = (ThreadReferenceImpl)vm.threadMirror(jt);
            myList.add(xx);
        }
    }
    return myList;
}
 
Example 8
Source File: ThreadReferenceImpl.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
ThreadReferenceImpl(VirtualMachine vm, Instance oRef) {
    // Instance must be of type java.lang.Thread
    super(vm, oRef);

    // JavaThread retrieved from java.lang.Thread instance may be null.
    // This is the case for threads not-started and for zombies. Wherever
    // appropriate, check for null instead of resulting in NullPointerException.
    myJavaThread = OopUtilities.threadOopGetJavaThread(oRef);
}
 
Example 9
Source File: ThreadReferenceImpl.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
ThreadReferenceImpl(VirtualMachine vm, Instance oRef) {
    // Instance must be of type java.lang.Thread
    super(vm, oRef);

    // JavaThread retrieved from java.lang.Thread instance may be null.
    // This is the case for threads not-started and for zombies. Wherever
    // appropriate, check for null instead of resulting in NullPointerException.
    myJavaThread = OopUtilities.threadOopGetJavaThread(oRef);
}
 
Example 10
Source File: ThreadReferenceImpl.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
ThreadReferenceImpl(VirtualMachine vm, Instance oRef) {
    // Instance must be of type java.lang.Thread
    super(vm, oRef);

    // JavaThread retrieved from java.lang.Thread instance may be null.
    // This is the case for threads not-started and for zombies. Wherever
    // appropriate, check for null instead of resulting in NullPointerException.
    myJavaThread = OopUtilities.threadOopGetJavaThread(oRef);
}
 
Example 11
Source File: ThreadReferenceImpl.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
ThreadReferenceImpl(VirtualMachine vm, Instance oRef) {
    // Instance must be of type java.lang.Thread
    super(vm, oRef);

    // JavaThread retrieved from java.lang.Thread instance may be null.
    // This is the case for threads not-started and for zombies. Wherever
    // appropriate, check for null instead of resulting in NullPointerException.
    myJavaThread = OopUtilities.threadOopGetJavaThread(oRef);
}
 
Example 12
Source File: ThreadReferenceImpl.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
ThreadReferenceImpl(VirtualMachine vm, Instance oRef) {
    // Instance must be of type java.lang.Thread
    super(vm, oRef);

    // JavaThread retrieved from java.lang.Thread instance may be null.
    // This is the case for threads not-started and for zombies. Wherever
    // appropriate, check for null instead of resulting in NullPointerException.
    myJavaThread = OopUtilities.threadOopGetJavaThread(oRef);
}
 
Example 13
Source File: ThreadReferenceImpl.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
ThreadReferenceImpl(VirtualMachine vm, Instance oRef) {
    // Instance must be of type java.lang.Thread
    super(vm, oRef);

    // JavaThread retrieved from java.lang.Thread instance may be null.
    // This is the case for threads not-started and for zombies. Wherever
    // appropriate, check for null instead of resulting in NullPointerException.
    myJavaThread = OopUtilities.threadOopGetJavaThread(oRef);
}
 
Example 14
Source File: ThreadReferenceImpl.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
ThreadReferenceImpl(VirtualMachine vm, Instance oRef) {
    // Instance must be of type java.lang.Thread
    super(vm, oRef);

    // JavaThread retrieved from java.lang.Thread instance may be null.
    // This is the case for threads not-started and for zombies. Wherever
    // appropriate, check for null instead of resulting in NullPointerException.
    myJavaThread = OopUtilities.threadOopGetJavaThread(oRef);
}