8187347: Do not abort CDS archive creation when some classes are unverifiable
Deprecating the IgnoreUnverifiableClassesDuringDump vm option in JDK10 and set its default value to true Reviewed-by: dholmes, jiangli
This commit is contained in:
parent
df4f3bc82e
commit
c39d2071f0
@ -382,6 +382,7 @@ static SpecialFlag const special_jvm_flags[] = {
|
|||||||
{ "MaxRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
|
{ "MaxRAMFraction", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||||
{ "MinRAMFraction", 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() },
|
{ "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:
|
// --- 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() },
|
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::undefined(), JDK_Version::undefined() },
|
||||||
|
@ -3922,7 +3922,7 @@ public:
|
|||||||
"Average number of symbols per bucket in shared table") \
|
"Average number of symbols per bucket in shared table") \
|
||||||
range(2, 246) \
|
range(2, 246) \
|
||||||
\
|
\
|
||||||
diagnostic(bool, IgnoreUnverifiableClassesDuringDump, false, \
|
diagnostic(bool, IgnoreUnverifiableClassesDuringDump, true, \
|
||||||
"Do not quit -Xshare:dump even if we encounter unverifiable " \
|
"Do not quit -Xshare:dump even if we encounter unverifiable " \
|
||||||
"classes. Just exclude them from the shared dictionary.") \
|
"classes. Just exclude them from the shared dictionary.") \
|
||||||
\
|
\
|
||||||
|
@ -91,5 +91,6 @@ public class VMDeprecatedOptions {
|
|||||||
public static void main(String[] args) throws Throwable {
|
public static void main(String[] args) throws Throwable {
|
||||||
testDeprecated(DEPRECATED_OPTIONS); // Make sure that each deprecated option is mentioned in the output.
|
testDeprecated(DEPRECATED_OPTIONS); // Make sure that each deprecated option is mentioned in the output.
|
||||||
testDeprecatedDiagnostic("UnsyncloadClass", "false");
|
testDeprecatedDiagnostic("UnsyncloadClass", "false");
|
||||||
|
testDeprecatedDiagnostic("IgnoreUnverifiableClassesDuringDump", "false");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user