Java Code Examples for java.lang.management.LockInfo#from()

The following examples show how to use java.lang.management.LockInfo#from() . 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: ThreadInfoCompositeData.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 2
Source File: ThreadInfoCompositeData.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 3
Source File: ThreadInfoCompositeData.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 4
Source File: ThreadInfoCompositeData.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 5
Source File: ThreadInfoCompositeData.java    From jdk8u-jdk with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 6
Source File: ThreadInfoCompositeData.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 7
Source File: ThreadInfoCompositeData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 8
Source File: ThreadInfoCompositeData.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 9
Source File: ThreadInfoCompositeData.java    From jdk8u_jdk with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 10
Source File: ThreadInfoCompositeData.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 11
Source File: ThreadInfoCompositeData.java    From dragonwell8_jdk with GNU General Public License v2.0 5 votes vote down vote up
public LockInfo[] lockedSynchronizers() {
    CompositeData[] lockedSyncsData =
        (CompositeData[]) cdata.get(LOCKED_SYNCS);

    // The LockedSynchronizers item cannot be null, but if it is we will
    // get a NullPointerException when we ask for its length.
    LockInfo[] locks = new LockInfo[lockedSyncsData.length];
    for (int i = 0; i < lockedSyncsData.length; i++) {
        CompositeData cdi = lockedSyncsData[i];
        locks[i] = LockInfo.from(cdi);
    }
    return locks;
}
 
Example 12
Source File: ThreadInfoCompositeData.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 13
Source File: ThreadInfoCompositeData.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 14
Source File: ThreadInfoCompositeData.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 15
Source File: ThreadInfoCompositeData.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 16
Source File: ThreadInfoCompositeData.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 17
Source File: ThreadInfoCompositeData.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 18
Source File: ThreadInfoCompositeData.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 19
Source File: ThreadInfoCompositeData.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}
 
Example 20
Source File: ThreadInfoCompositeData.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public LockInfo lockInfo() {
    CompositeData lockInfoData = (CompositeData) cdata.get(LOCK_INFO);
    return LockInfo.from(lockInfoData);
}