From 25c1a45815cc4a57fbbee9ec7e878a122face23e Mon Sep 17 00:00:00 2001 From: sendaoYan Date: Tue, 24 Dec 2024 11:50:03 +0800 Subject: [PATCH] [Misc] Fix CodecacheMemoryCheck.sh fails with -Xcomp -XX:-TieredCompilation by fastdebug build Summary: Fix compiler/codecache/stress/CodecacheMemoryCheck.sh fails with -Xcomp -XX:-TieredCompilation by fastdebug build Testing: CI pipeline Reviewers: Accelerator1996, ziyilin Issue: https://github.com/dragonwell-project/dragonwell11/issues/906 --- .../jtreg/compiler/codecache/stress/CodecacheMemoryCheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/hotspot/jtreg/compiler/codecache/stress/CodecacheMemoryCheck.sh b/test/hotspot/jtreg/compiler/codecache/stress/CodecacheMemoryCheck.sh index c4822d29a28..8fc3ed523d0 100755 --- a/test/hotspot/jtreg/compiler/codecache/stress/CodecacheMemoryCheck.sh +++ b/test/hotspot/jtreg/compiler/codecache/stress/CodecacheMemoryCheck.sh @@ -92,7 +92,8 @@ useJcmdPrintMemoryUsage() while ! grep -q "For random generator using seed" ${javaLog} do sleep 0.1 #wait util java main function start finish - if [[ $i -ge 100 ]] ; then + if [[ $i -ge 200 ]] ; then + cat ${javaLog} echo "The tested java seems work abnormally!" exit 1 fi @@ -134,7 +135,8 @@ getMemoryUsageFromProc() while ! grep -q "For random generator using seed" ${javaLog} do sleep 0.1 #wait util java main function start finish - if [[ $i -ge 100 ]] ; then + if [[ $i -ge 200 ]] ; then + cat ${javaLog} echo "The tested java seems work abnormally!" exit 1 fi