changeset 23936:872c3a32dba4

8156794: Extend data sharing Reviewed-by: iklam, hseigel, acorn, mschoene
author jiangli
date Mon, 16 May 2016 14:01:31 -0400
parents ab925491360f
children 68b3b5557785
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Tue May 10 12:15:20 2016 -0700
+++ b/src/share/vm/runtime/arguments.cpp	Mon May 16 14:01:31 2016 -0400
@@ -3721,6 +3721,14 @@
 
 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");
     }