changeset 13395:90de0b1060bb mvt

8185148: [MVT] VerifierError when a class referencing __Value is loaded on non-MVT enabled JVM Reviewed-by: mcimadamore, thartmann
author mchung
date Fri, 28 Jul 2017 10:51:46 -0700
parents eba06bb9ed49
children 8ee978d1135c
files src/share/vm/runtime/arguments.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/runtime/arguments.cpp	Fri Jul 28 17:57:05 2017 +0200
+++ b/src/share/vm/runtime/arguments.cpp	Fri Jul 28 10:51:46 2017 -0700
@@ -3453,6 +3453,12 @@
     }
   }
 
+  if (EnableMVT || EnableValhalla) {
+    if (!create_property("valhalla.enableValueType", "true", InternalProperty)) {
+      return JNI_ENOMEM;
+    }
+  }
+
   // PrintSharedArchiveAndExit will turn on
   //   -Xshare:on
   //   -Xlog:class+path=info