From 065f9a3a4eb8a5081ae2175e5bca5eaf9681fb74 Mon Sep 17 00:00:00 2001 From: Jiangli Zhou Date: Thu, 12 May 2016 17:37:45 -0400 Subject: [PATCH] 8156794: Extend data sharing Reviewed-by: iklam, hseigel, acorn, mschoene --- hotspot/src/share/vm/runtime/arguments.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hotspot/src/share/vm/runtime/arguments.cpp b/hotspot/src/share/vm/runtime/arguments.cpp index 8017e73a4ea..5b3e570e425 100644 --- a/hotspot/src/share/vm/runtime/arguments.cpp +++ b/hotspot/src/share/vm/runtime/arguments.cpp @@ -3899,6 +3899,13 @@ jint Arguments::parse_options_buffer(const char* name, char* buffer, const size_ void Arguments::set_shared_spaces_flags() { if (DumpSharedSpaces) { + if (FailOverToOldVerifier) { + // Don't fall back to the old verifier on verification failure. If a + // class fails verification with the split verifier, it might fail the + // CDS runtime verifier constraint check. In that case, we don't want + // to share the class. We only archive classes that pass the split verifier. + FLAG_SET_DEFAULT(FailOverToOldVerifier, false); + } if (RequireSharedSpaces) { warning("Cannot dump shared archive while using shared archive");