8187347: Do not abort CDS archive creation when some classes are unverifiable
Summary: deprecating the IgnoreUnverifiableClassesDuringDump vm option in JDK10 and set its default value to true
Reviewed-by: dholmes, jiangli
--- a/src/hotspot/share/runtime/arguments.cpp Fri Nov 03 07:44:13 2017 -0400
+++ b/src/hotspot/share/runtime/arguments.cpp Fri Nov 03 10:48:26 2017 -0700
@@ -382,6 +382,7 @@
{ "MaxRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
{ "MinRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
{ "InitialRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
+ { "IgnoreUnverifiableClassesDuringDump", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::undefined(), JDK_Version::undefined() },
--- a/src/hotspot/share/runtime/globals.hpp Fri Nov 03 07:44:13 2017 -0400
+++ b/src/hotspot/share/runtime/globals.hpp Fri Nov 03 10:48:26 2017 -0700
@@ -3922,7 +3922,7 @@
"Average number of symbols per bucket in shared table") \
range(2, 246) \
\
- diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false, \
+ diagnostic(bool, IgnoreUnverifiableClassesDuringDump, true, \
"Do not quit -Xshare:dump even if we encounter unverifiable " \
"classes. Just exclude them from the shared dictionary.") \
\
--- a/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java Fri Nov 03 07:44:13 2017 -0400
+++ b/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java Fri Nov 03 10:48:26 2017 -0700
@@ -91,5 +91,6 @@
public static void main(String[] args) throws Throwable {
testDeprecated(DEPRECATED_OPTIONS); // Make sure that each deprecated option is mentioned in the output.
testDeprecatedDiagnostic("UnsyncloadClass", "false");
+ testDeprecatedDiagnostic("IgnoreUnverifiableClassesDuringDump", "false");
}
}