--- a/test/hotspot/jtreg/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Tue Jun 26 09:52:21 2018 -0400
+++ b/test/hotspot/jtreg/gc/metaspace/CompressedClassSpaceSizeInJmapHeap.java Mon Jun 25 23:04:21 2018 +0200
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -21,11 +21,11 @@
* questions.
*/
-/*
+/**
* @test CompressedClassSpaceSizeInJmapHeap
* @bug 8004924
* @summary Checks that jmap -heap contains the flag CompressedClassSpaceSize
- * @requires vm.opt.final.UseCompressedOops
+ * @requires vm.hasSAandCanAttach & vm.opt.final.UseCompressedOops
* @library /test/lib
* @modules java.base/jdk.internal.misc
* java.management
@@ -48,10 +48,6 @@
// Compressed Class Space is only available on 64-bit JVMs
return;
}
- if (!Platform.shouldSAAttach()) {
- System.out.println("SA attach not expected to work - test skipped.");
- return;
- }
String pid = Long.toString(ProcessTools.getProcessId());