Skip to content
Snippets Groups Projects
Commit cd910ffe authored by Igor Ignatyev's avatar Igor Ignatyev
Browse files

8043899: compiler/5091921/Test7005594.java fails if specified -Xmx is less than 1600m

Reviewed-by: kvn, twisti, vlivanov
parent 7ffabd53
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@
/**
* @test
* @bug 7005594
* @ignore 7117034
* @summary Array overflow not handled correctly with loop optimzations
*
* @run shell Test7005594.sh
......
......@@ -78,7 +78,7 @@ cp ${TESTSRC}/Test7005594.sh .
${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test7005594.java
${TESTJAVA}/bin/java ${TESTVMOPTS} -Xms1600m -XX:+IgnoreUnrecognizedVMOptions -XX:-ZapUnusedHeapArea -Xcomp -XX:CompileOnly=Test7005594.test Test7005594 > test.out 2>&1
${TESTJAVA}/bin/java ${TESTVMOPTS} -Xmx1600m -Xms1600m -XX:+IgnoreUnrecognizedVMOptions -XX:-ZapUnusedHeapArea -Xcomp -XX:CompileOnly=Test7005594.test Test7005594 > test.out 2>&1
result=$?
......@@ -97,7 +97,7 @@ then
fi
# The test should pass when no enough space for object heap
grep "Could not reserve enough space for object heap" test.out
grep "Could not reserve enough space for .*object heap" test.out
if [ $? = 0 ]
then
echo "Passed"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment