http://hg.openjdk.java.net/jdk/jdk/file/73bcb3e4e596/src/hotspot/share/prims/whitebox.cpp#l1975
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;
#endif // INCLUDE_CDS
WB_END
The test for (!UseCompressedOops || !UseCompressedClassPointers) should be removed because CDS started supporting them afterJDK-8232069.
To validate, run all CDS tests with
jtreg -vmoptions:-XX:+UseZGC
jtreg -vmoptions:-XX:-UseCompressedOops
jtreg -vmoptions:-XX:-UseCompressedClassPointers
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;
#endif // INCLUDE_CDS
WB_END
The test for (!UseCompressedOops || !UseCompressedClassPointers) should be removed because CDS started supporting them after
To validate, run all CDS tests with
jtreg -vmoptions:-XX:+UseZGC
jtreg -vmoptions:-XX:-UseCompressedOops
jtreg -vmoptions:-XX:-UseCompressedClassPointers
- duplicates
-
JDK-8240691 ClhsdbCDSJstackPrintAll incorrectly thinks CDS is in use
-
- Resolved
-
- relates to
-
JDK-8240698 LingeredApp does not pass getTestJavaOpts() to the children process if vmArguments is already specified
-
- Resolved
-
-
JDK-8241009 CommandLineFlagComboNegative.java fails after JDK-8240563
-
- Resolved
-
-
JDK-8241075 appcds/customLoader/HelloCustom_JFR.java failed due to "should have been unloaded"
-
- Closed
-
-
JDK-8232069 Enable CDS even when UseCompressedClassPointers and/or UseCompressedOops are false
-
- Resolved
-