Skip to content

Commit

Permalink
[Misc] fix test TestDefaultCodeCacheSize failure
Browse files Browse the repository at this point in the history
* [Misc] fix test TestDefaultCodeCacheSize failure

Summary: fix test TestDefaultCodeCacheSize.sh failure.

Test Plan: CI pipeline

Reviewed-by: tjw378335, JoshuaZhuwj

Issue: #579
  • Loading branch information
sandlerwang committed Jul 27, 2023
1 parent 4a28832 commit c61dbd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hotspot/test/compiler/codecache/TestDefaultCodeCacheSize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
# @run shell TestDefaultCodeCacheSize.sh
#

${TESTJAVA}/bin/java -XX:+PrintFlagsFinal -version | grep ReservedCodeCacheSize |grep 251658240
CodeCache=`${TESTJAVA}/bin/java -XX:+PrintFlagsFinal -version | grep ReservedCodeCacheSize | awk '{print $4}'`

if [ "0" == $? ];
if [ $CodeCache -gt 200000000 ];
then
echo "ReservedCodeCacheSize is 240m"
echo "ReservedCodeCacheSize is 240m or $CodeCache"
echo "--- Test passed"
else
echo "ReservedCodeCacheSize is not 240m"
echo "ReservedCodeCacheSize is not 240m or $CodeCache"
echo "--- Test failed"
exit 1
fi

0 comments on commit c61dbd4

Please sign in to comment.