< prev index next >

test/compiler/whitebox/AllocationCodeBlobTest.java

Print this page




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 import java.lang.management.MemoryPoolMXBean;
  26 import java.util.EnumSet;
  27 import java.util.ArrayList;
  28 
  29 import sun.hotspot.WhiteBox;
  30 import sun.hotspot.code.BlobType;
  31 import com.oracle.java.testlibrary.Asserts;
  32 import com.oracle.java.testlibrary.InfiniteLoop;
  33 
  34 /*
  35  * @test AllocationCodeBlobTest
  36  * @bug 8059624 8064669
  37  * @library /testlibrary /../../test/lib
  38  * @modules java.management
  39  * @build AllocationCodeBlobTest
  40  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  41  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  42  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  43  *                   -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,null::*
  44  *                   -XX:-SegmentedCodeCache AllocationCodeBlobTest
  45  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  46  *                   -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,null::*
  47  *                   -XX:+SegmentedCodeCache AllocationCodeBlobTest
  48  * @summary testing of WB::allocate/freeCodeBlob()
  49  */
  50 public class AllocationCodeBlobTest {
  51     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  52     private static final long CODE_CACHE_SIZE




  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 import java.lang.management.MemoryPoolMXBean;
  26 import java.util.EnumSet;
  27 import java.util.ArrayList;
  28 
  29 import sun.hotspot.WhiteBox;
  30 import sun.hotspot.code.BlobType;
  31 import jdk.test.lib.Asserts;
  32 import jdk.test.lib.InfiniteLoop;
  33 
  34 /*
  35  * @test AllocationCodeBlobTest
  36  * @bug 8059624 8064669
  37  * @library /testlibrary /../../test/lib
  38  * @modules java.management
  39  * @build AllocationCodeBlobTest
  40  * @run main ClassFileInstaller sun.hotspot.WhiteBox
  41  *                              sun.hotspot.WhiteBox$WhiteBoxPermission
  42  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  43  *                   -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,null::*
  44  *                   -XX:-SegmentedCodeCache AllocationCodeBlobTest
  45  * @run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions
  46  *                   -XX:+WhiteBoxAPI -XX:CompileCommand=compileonly,null::*
  47  *                   -XX:+SegmentedCodeCache AllocationCodeBlobTest
  48  * @summary testing of WB::allocate/freeCodeBlob()
  49  */
  50 public class AllocationCodeBlobTest {
  51     private static final WhiteBox WHITE_BOX = WhiteBox.getWhiteBox();
  52     private static final long CODE_CACHE_SIZE


< prev index next >