changeset 42617:9ac2fe949f27

8170416: CompilerControl: VectorizeDebug option type is incorrect Summary: VectorizeDebug C2 option flag should be uintx instead of bool. Reviewed-by: thartmann
author kvn
date Tue, 29 Nov 2016 12:40:46 -0800
parents 62e6f7e7fde2
children 08162de8f053
files hotspot/src/share/vm/compiler/compilerDirectives.hpp hotspot/src/share/vm/compiler/directivesParser.hpp
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hotspot/src/share/vm/compiler/compilerDirectives.hpp	Tue Nov 29 19:20:03 2016 +0000
+++ b/hotspot/src/share/vm/compiler/compilerDirectives.hpp	Tue Nov 29 12:40:46 2016 -0800
@@ -64,7 +64,7 @@
     cflags(TraceOptoOutput,         bool, false, TraceOptoOutput) \
     cflags(TraceSpilling,           bool, TraceSpilling, TraceSpilling) \
     cflags(Vectorize,               bool, false, Vectorize) \
-    cflags(VectorizeDebug,          bool, false, VectorizeDebug) \
+    cflags(VectorizeDebug,         uintx, 0, VectorizeDebug) \
     cflags(CloneMapDebug,           bool, false, CloneMapDebug) \
     cflags(DoReserveCopyInSuperWordDebug, bool, false, DoReserveCopyInSuperWordDebug) \
     cflags(IGVPrintLevel,           intx, PrintIdealGraphLevel, IGVPrintLevel) \
@@ -140,6 +140,7 @@
   compilerdirectives_c1_flags(set_function_definition)
 
   void print_intx(outputStream* st, ccstr n, intx v, bool mod) { if (mod) { st->print("%s:" INTX_FORMAT " ", n, v); } }
+  void print_uintx(outputStream* st, ccstr n, intx v, bool mod) { if (mod) { st->print("%s:" UINTX_FORMAT " ", n, v); } }
   void print_bool(outputStream* st, ccstr n, bool v, bool mod) { if (mod) { st->print("%s:%s ", n, v ? "true" : "false"); } }
   void print_double(outputStream* st, ccstr n, double v, bool mod) { if (mod) { st->print("%s:%f ", n, v); } }
   void print_ccstr(outputStream* st, ccstr n, ccstr v, bool mod) { if (mod) { st->print("%s:%s ", n, v); } }
--- a/hotspot/src/share/vm/compiler/directivesParser.hpp	Tue Nov 29 19:20:03 2016 +0000
+++ b/hotspot/src/share/vm/compiler/directivesParser.hpp	Tue Nov 29 12:40:46 2016 -0800
@@ -31,6 +31,7 @@
 enum FlagType {
   boolFlag,
   intxFlag,
+  uintxFlag,
   doubleFlag,
   ccstrFlag,
   ccstrlistFlag,
@@ -40,6 +41,7 @@
 static const char* flag_type_names[] = {
     "bool",
     "int",
+    "uint",
     "double",
     "string",
     "string list",