8184047: ExecuteInternalVMTests.java "failed on a valid DirectivesParser string" assert
authordlong
Tue, 25 Jul 2017 08:58:24 -0700
changeset 46714 3cc3fd32a5d6
parent 46712 15288889f0c6
child 46715 87a18a3061cf
8184047: ExecuteInternalVMTests.java "failed on a valid DirectivesParser string" assert Reviewed-by: kvn
hotspot/src/share/vm/compiler/directivesParser.cpp
--- a/hotspot/src/share/vm/compiler/directivesParser.cpp	Mon Jul 24 22:56:43 2017 +0000
+++ b/hotspot/src/share/vm/compiler/directivesParser.cpp	Tue Jul 25 08:58:24 2017 -0700
@@ -628,11 +628,20 @@
     "    match: \"foo/bar.*\"," "\n"
     "    c2: {" "\n"
     "      PrintInlining: false," "\n"
+    "    }" "\n"
+    "  }" "\n"
+    "]" "\n", true);
+
+  DirectivesParser::test(
+    "[" "\n"
+    "  {" "\n"
+    "    match: \"foo/bar.*\"," "\n"
+    "    c2: {" "\n"
     "      VectorizeDebug: 1," "\n"
     "      VectorizeDebug: -1," "\n"
     "    }" "\n"
     "  }" "\n"
-    "]" "\n", true);
+    "]" "\n", COMPILER2_PRESENT(true) NOT_COMPILER2(false));
 
   DirectivesParser::test(
     "[" "\n"