test/compiler/5091921/Test7005594.sh
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
8043899 Cdiff test/compiler/5091921/Test7005594.sh
test/compiler/5091921/Test7005594.sh
Print this page
rev 6449 : 8043899: compiler/5091921/Test7005594.java fails if specified -Xmx is less than 1600m
Reviewed-by:
*** 76,86 ****
cp ${TESTSRC}/Test7005594.java .
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
result=$?
cat test.out
--- 76,86 ----
cp ${TESTSRC}/Test7005594.java .
cp ${TESTSRC}/Test7005594.sh .
${COMPILEJAVA}/bin/javac ${TESTJAVACOPTS} -d . Test7005594.java
! ${TESTJAVA}/bin/java ${TESTVMOPTS} -Xmx1600m -Xms1600m -XX:+IgnoreUnrecognizedVMOptions -XX:-ZapUnusedHeapArea -Xcomp -XX:CompileOnly=Test7005594.test Test7005594 > test.out 2>&1
result=$?
cat test.out
*** 95,105 ****
echo "Failed"
exit 1
fi
# The test should pass when no enough space for object heap
! grep "Could not reserve enough space for object heap" test.out
if [ $? = 0 ]
then
echo "Passed"
exit 0
else
--- 95,105 ----
echo "Failed"
exit 1
fi
# The test should pass when no enough space for object heap
! grep "Could not reserve enough space for .*object heap" test.out
if [ $? = 0 ]
then
echo "Passed"
exit 0
else
test/compiler/5091921/Test7005594.sh
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File