提交 73104257 编写于 作者: E ehelin

8010734: NPG: The test MemoryTest.java needs to be updated to support metaspace

Reviewed-by: alanb
上级 52047e1c
...@@ -137,10 +137,6 @@ java/lang/Class/asSubclass/BasicUnit.java generic-all ...@@ -137,10 +137,6 @@ java/lang/Class/asSubclass/BasicUnit.java generic-all
# 8015780 # 8015780
java/lang/reflect/Method/GenericStringTest.java generic-all java/lang/reflect/Method/GenericStringTest.java generic-all
# 8019500
java/lang/management/MemoryMXBean/MemoryTestAllGC.sh generic-all
java/lang/management/MemoryMXBean/MemoryTest.java generic-all
############################################################################ ############################################################################
# jdk_management # jdk_management
......
...@@ -59,18 +59,21 @@ public class MemoryTest { ...@@ -59,18 +59,21 @@ public class MemoryTest {
// (or equivalent for other collectors) // (or equivalent for other collectors)
// Number of GC memory managers = 2 // Number of GC memory managers = 2
// Hotspot VM 1.8+ after perm gen removal is expected to have only // Hotspot VM 1.8+ after perm gen removal is expected to have two or
// one non-heap memory pool // three non-heap memory pools:
private static int[] expectedMinNumPools = {3, 1}; // - Code cache
private static int[] expectedMaxNumPools = {3, 1}; // - 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 expectedNumGCMgrs = 2; private static int expectedNumGCMgrs = 2;
private static int expectedNumMgrs = expectedNumGCMgrs + 1; private static int expectedNumMgrs = expectedNumGCMgrs + 2;
private static String[] types = { "heap", "non-heap" }; private static String[] types = { "heap", "non-heap" };
public static void main(String args[]) throws Exception { public static void main(String args[]) throws Exception {
Integer value = new Integer(args[0]); Integer value = new Integer(args[0]);
expectedNumGCMgrs = value.intValue(); expectedNumGCMgrs = value.intValue();
expectedNumMgrs = expectedNumGCMgrs + 1; expectedNumMgrs = expectedNumGCMgrs + 2;
checkMemoryPools(); checkMemoryPools();
checkMemoryManagers(); checkMemoryManagers();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册