8153275: Zero JVM fails to initialize after JDK-8152440
authorsgehwolf
Mon, 18 Apr 2016 11:30:12 +0200
changeset 37996 c851f9ab9816
parent 37993 e446184da25e
child 37997 db6541410dfb
8153275: Zero JVM fails to initialize after JDK-8152440 Summary: Use a value for InitArrayShortSize which passes validation Reviewed-by: aph, andrew, coleenp
hotspot/src/cpu/zero/vm/globals_zero.hpp
--- a/hotspot/src/cpu/zero/vm/globals_zero.hpp	Tue Apr 19 14:21:26 2016 +0200
+++ b/hotspot/src/cpu/zero/vm/globals_zero.hpp	Mon Apr 18 11:30:12 2016 +0200
@@ -43,7 +43,12 @@
 define_pd_global(intx,  OptoLoopAlignment,    16);
 define_pd_global(intx,  InlineFrequencyCount, 100);
 define_pd_global(intx,  InlineSmallCode,      1000);
-define_pd_global(intx,  InitArrayShortSize,   -1); // not used
+
+// not used, but must satisfy following constraints:
+// 1.) <VALUE> must be in the allowed range for intx *and*
+// 2.) <VALUE> % BytesPerLong == 0 so as to not
+//     violate the constraint verifier on JVM start-up.
+define_pd_global(intx,  InitArrayShortSize,   0);
 
 #define DEFAULT_STACK_YELLOW_PAGES (2)
 #define DEFAULT_STACK_RED_PAGES (1)