changeset 46714:3cc3fd32a5d6

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 15288889f0c6
children 87a18a3061cf
files hotspot/src/share/vm/compiler/directivesParser.cpp
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"