8015774: Add support for multiple code heaps
authorthartmann
Wed, 17 Sep 2014 08:04:31 +0200
changeset 26867 904e243eac08
parent 26594 b561a19107c7
child 26868 7146fad1804a
8015774: Add support for multiple code heaps Summary: Support for segmentation of the code cache. Separate code heaps are created and used to store code of different types. Reviewed-by: kvn, iveresov, roland, anoll, egahlin, sla
jdk/test/java/lang/management/MemoryMXBean/MemoryTest.java
--- a/jdk/test/java/lang/management/MemoryMXBean/MemoryTest.java	Fri Sep 12 12:19:27 2014 +0200
+++ b/jdk/test/java/lang/management/MemoryMXBean/MemoryTest.java	Wed Sep 17 08:04:31 2014 +0200
@@ -59,13 +59,13 @@
     // (or equivalent for other collectors)
     // Number of GC memory managers = 2
 
-    // Hotspot VM 1.8+ after perm gen removal is expected to have two or
-    // three non-heap memory pools:
-    // - Code cache
+    // Hotspot VM 1.8+ after perm gen removal is expected to have between two
+    // or five non-heap memory pools:
+    // - Code cache (between one and three depending on the -XX:SegmentedCodeCache option)
     // - Metaspace
     // - Compressed Class Space (if compressed class pointers are used)
     private static int[] expectedMinNumPools = {3, 2};
-    private static int[] expectedMaxNumPools = {3, 3};
+    private static int[] expectedMaxNumPools = {3, 5};
     private static int expectedNumGCMgrs = 2;
     private static int expectedNumMgrs = expectedNumGCMgrs + 2;
     private static String[] types = { "heap", "non-heap" };