changeset 10941:733bbe81b807

8153275: Zero JVM fails to initialize after JDK-8152440 Summary: Use a value for InitArrayShortSize which passes validation Reviewed-by: aph, andrew, coleenp
author sgehwolf
date Mon, 18 Apr 2016 11:30:12 +0200
parents f5039ced9a85
children 8aa8513f9944
files src/cpu/zero/vm/globals_zero.hpp
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/zero/vm/globals_zero.hpp	Tue Apr 19 14:21:26 2016 +0200
+++ b/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)