Java Code Examples for sun.hotspot.code.BlobType#getSize()

The following examples show how to use sun.hotspot.code.BlobType#getSize() . 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: TestCodeCacheFull.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private static long calculateAvailableSize(BlobType btype) {
    long availableSize = btype.getSize();
    for (BlobType alternative : BlobType.getAvailable()) {
        if (btype.allowTypeWhenOverflow(alternative)) {
            availableSize = Math.max(availableSize, alternative.getSize());
        }
    }
    return availableSize;
}
 
Example 2
Source File: TestCodeCacheFull.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private static long calculateAvailableSize(BlobType btype) {
    long availableSize = btype.getSize();
    for (BlobType alternative : BlobType.getAvailable()) {
        if (btype.allowTypeWhenOverflow(alternative)) {
            availableSize = Math.max(availableSize, alternative.getSize());
        }
    }
    return availableSize;
}
 
Example 3
Source File: InitialAndMaxUsageTest.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
public InitialAndMaxUsageTest(BlobType btype) {
    this.btype = btype;
    this.maxSize = btype.getSize();
    /* Only profiled code cache initial size should be 0, because of
     -XX:CompileCommand=compileonly,null::* non-methods might be not empty,
     as well as non-profiled methods, because it's used as fallback in
     case non-methods is full */
    lowerBoundIsZero = btype == BlobType.MethodProfiled;
}