Skip to content

Commit

Permalink
[Wisp] only test c1 assertion failure in slowdebug mode
Browse files Browse the repository at this point in the history
Summary: Determine the java mode before run normal logics.
If java is release or fastdebug, just go to the ending early.

Testing: hotspot/test/runtime/coroutine/c1AssertFailTest.sh

Reviewers: lingjun-cg, yulei

Issue: #605
  • Loading branch information
jia-wei-tang committed Dec 11, 2023
1 parent b09c6e0 commit ec6f074
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions hotspot/test/runtime/coroutine/c1AssertFailTest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,22 @@
## @requires os.family == "linux"
## @run shell c1AssertFailTest.sh


${TESTJAVA}/bin/java -Xcomp -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.transparentAsync=true &
set -x
version=`${TESTJAVA}/bin/java -version 2>&1`
fastdebug=`echo ${version} | grep "fastdebug"`
# fastdebug mode
if [ "$fastdebug" != "" ];then
echo "fastdebug mode"
exit 0
fi
debug=`echo ${version} | grep "debug"`
# release mode
if [ "$debug" = "" ];then
echo "release mode"
exit 0
fi
# slowdebug mode
time ${TESTJAVA}/bin/java -Xcomp -XX:TieredStopAtLevel=1 -XX:-UseBiasedLocking -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine -XX:+UseWispMonitor -Dcom.alibaba.transparentAsync=true &

PID=$!

Expand Down

0 comments on commit ec6f074

Please sign in to comment.