test/jdk/jdk/jfr/event/gc/configuration/TestGCHeapConfigurationEventWith32BitOops.java
changeset 57693 36a842b472e8
parent 50113 caf115bb98ad
child 58976 4e3694a617d4
equal deleted inserted replaced
57692:8f3fcb9251d1 57693:36a842b472e8
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    51     @Override
    51     @Override
    52     public void verify() throws Exception {
    52     public void verify() throws Exception {
    53         WhiteBox wb = WhiteBox.getWhiteBox();
    53         WhiteBox wb = WhiteBox.getWhiteBox();
    54         long heapAlignment = wb.getHeapAlignment();
    54         long heapAlignment = wb.getHeapAlignment();
    55         long alignedHeapSize = GCHelper.alignUp(megabytes(100), heapAlignment);
    55         long alignedHeapSize = GCHelper.alignUp(megabytes(100), heapAlignment);
    56         verifyMinHeapSizeIs(megabytes(100));
    56         verifyMinHeapSizeIs(alignedHeapSize);
    57         verifyInitialHeapSizeIs(alignedHeapSize);
    57         verifyInitialHeapSizeIs(alignedHeapSize);
    58         verifyMaxHeapSizeIs(alignedHeapSize);
    58         verifyMaxHeapSizeIs(alignedHeapSize);
    59         verifyUsesCompressedOopsIs(true);
    59         verifyUsesCompressedOopsIs(true);
    60         verifyObjectAlignmentInBytesIs(8);
    60         verifyObjectAlignmentInBytesIs(8);
    61         verifyHeapAddressBitsIs(32);
    61         verifyHeapAddressBitsIs(32);