Java Code Examples for sun.hotspot.WhiteBox#getHeapAlignment()

The following examples show how to use sun.hotspot.WhiteBox#getHeapAlignment() . 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: TestHeapSummaryCommittedSize.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
public CommittedHeapSizeVerifier(RecordedEvent event) {
    super(event);
    WhiteBox wb = WhiteBox.getWhiteBox();
    long heapAlignment = wb.getHeapAlignment();
    MAX_ALIGNED_COMMITTED_SIZE = GCHelper.alignUp(
            MAX_UNALIGNED_COMMITTED_SIZE,heapAlignment);
}
 
Example 2
Source File: TestGCHeapConfigurationEventWith32BitOops.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void verify() throws Exception {
    WhiteBox wb = WhiteBox.getWhiteBox();
    long heapAlignment = wb.getHeapAlignment();
    long alignedHeapSize = GCHelper.alignUp(megabytes(100), heapAlignment);
    verifyMinHeapSizeIs(megabytes(100));
    verifyInitialHeapSizeIs(alignedHeapSize);
    verifyMaxHeapSizeIs(alignedHeapSize);
    verifyUsesCompressedOopsIs(true);
    verifyObjectAlignmentInBytesIs(8);
    verifyHeapAddressBitsIs(32);
    verifyCompressedOopModeIs("32-bit");
}
 
Example 3
Source File: TestHeapSummaryCommittedSize.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
public CommittedHeapSizeVerifier(RecordedEvent event) {
    super(event);
    WhiteBox wb = WhiteBox.getWhiteBox();
    long heapAlignment = wb.getHeapAlignment();
    MAX_ALIGNED_COMMITTED_SIZE = GCHelper.alignUp(
            MAX_UNALIGNED_COMMITTED_SIZE,heapAlignment);
}
 
Example 4
Source File: TestGCHeapConfigurationEventWith32BitOops.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void verify() throws Exception {
    WhiteBox wb = WhiteBox.getWhiteBox();
    long heapAlignment = wb.getHeapAlignment();
    long alignedHeapSize = GCHelper.alignUp(megabytes(100), heapAlignment);
    verifyMinHeapSizeIs(megabytes(100));
    verifyInitialHeapSizeIs(alignedHeapSize);
    verifyMaxHeapSizeIs(alignedHeapSize);
    verifyUsesCompressedOopsIs(true);
    verifyObjectAlignmentInBytesIs(8);
    verifyHeapAddressBitsIs(32);
    verifyCompressedOopModeIs("32-bit");
}