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