changeset 12207:4567b6a9e7e9

8156794: Extend data sharing Reviewed-by: iklam, hseigel, acorn, mschoene
author jiangli
date Thu, 12 May 2016 17:37:45 -0400
parents 160a00bc6ed0
children 601485e5640a
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Thu Oct 13 23:03:14 2016 +0000
+++ b/src/share/vm/runtime/arguments.cpp	Thu May 12 17:37:45 2016 -0400
@@ -3899,6 +3899,13 @@
 
 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");