8184047: ExecuteInternalVMTests.java "failed on a valid DirectivesParser string" assert
Reviewed-by: kvn
--- 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"