Skip to content
Permalink
Browse files
8240563: [TESTBUG] WB_IsCDSIncludedInVmBuild should support uncompres…
…sed oops/klasses

With 8232069, CDS works with uncompressed oops/kalsses, detecting CDS code no longer bases on the two flags.

Reviewed-by: iklam
  • Loading branch information
yminqi committed Mar 12, 2020
1 parent c68e15c commit 90a39195c14b5444a487544bd914f13d99445f2a
@@ -2003,12 +2003,6 @@ WB_END

WB_ENTRY(jboolean, WB_IsCDSIncludedInVmBuild(JNIEnv* env))
#if INCLUDE_CDS
# ifdef _LP64
if (!UseCompressedOops || !UseCompressedClassPointers) {
// On 64-bit VMs, CDS is supported only with compressed oops/pointers
return false;
}
# endif // _LP64
return true;
#else
return false;
@@ -40,6 +40,7 @@ serviceability/sa/ClhsdbThread.java 8220624 generic-
serviceability/sa/ClhsdbWhere.java 8220624 generic-all
serviceability/sa/DeadlockDetectionTest.java 8220624 generic-all
serviceability/sa/JhsdbThreadInfoTest.java 8220624 generic-all
serviceability/sa/ClhsdbCDSCore.java 8220624 generic-all
serviceability/sa/TestClhsdbJstackLock.java 8220624 generic-all
serviceability/sa/TestHeapDumpForInvokeDynamic.java 8220624 generic-all
serviceability/sa/TestHeapDumpForLargeArray.java 8220624 generic-all
@@ -29,6 +29,7 @@
* E.g. use compressed oops for creating and archive, but then
* execute w/o compressed oops
* @requires vm.cds
* @requires !vm.gc.Z
* @library /test/lib
* @compile test-classes/Hello.java
* @run driver CommandLineFlagComboNegative
@@ -62,6 +62,8 @@ public static void main(String... args) throws Exception {
.exec(helloJar,
"-XX:+UnlockExperimentalVMOptions",
"-XX:-UseZGC",
"-XX:+UseCompressedOops", // in case turned off by vmoptions
"-XX:+UseCompressedClassPointers", // by jtreg
"-Xlog:cds",
"Hello");
out.shouldContain(UNABLE_TO_USE_ARCHIVE);

0 comments on commit 90a3919

Please sign in to comment.