changeset 13378:430f49f2f2e0

8184047: ExecuteInternalVMTests.java "failed on a valid DirectivesParser string" assert Reviewed-by: kvn
author dlong
date Tue, 25 Jul 2017 08:58:24 -0700
parents 0a22e4ef496e
children e5258343af9c
files src/share/vm/compiler/directivesParser.cpp
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/compiler/directivesParser.cpp	Mon Jul 24 22:56:43 2017 +0000
+++ b/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"