dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【dragonwell17】在x64平台hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/deoptimize/Test.java用例在-Xcomp -XX:TieredStopAtLevel=1选项运行失败 #255

Closed owanqian closed 1 year ago

owanqian commented 1 year ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/239361 【环境准备】

wget -O jtreg.zip https://compiler-ci-bucket.oss-cn-hangzhou.aliyuncs.com/jdk/tools/jtreg-6.1.1.zip
wget -O binary.tar.gz https://dragonwell.oss-cn-shanghai.aliyuncs.com/test-58/OpenJDK17U-jdk_x64_linux_dragonwell_2023-10-23-02-59.tar.gz
wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/test-58/OpenJDK17U-testimage_x64_linux_dragonwell_2023-10-23-02-59.tar.gz -O test-image.tar.gz
git clone https://github.com/dragonwell-project/dragonwell17.git -b wip_dragonwell_standard_merge_branch jdk-repo

mkdir binary-download 
tar xzvf binary.tar.gz -C binary-download ; cd binary-download && export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME &&cd -
make test-image ; tar xzvf test-image.tar.gz -C test-image
unzip jtreg.zip; cd jtreg ; export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH ; cd -

test=\
jdk-repo/test/hotspot/jtreg/vmTestbase/vm/mlvm/meth/stress/compiler/deoptimize/Test.java

args='-Xcomp -XX:TieredStopAtLevel=1'
native='-nativepath:./test-image/hotspot/jtreg/native'
jtreg -w tmp -nr -v:fail,error $native  $args $test

【对比测试】

dragonwell17 release版本同样错误. wget https://dragonwell.oss-cn-shanghai.aliyuncs.com/17.0.8.0.8%2B7/Alibaba_Dragonwell_Standard_17.0.8.0.8.7_x64_linux.tar.gz

[root@VM20210305-10 d17-release]# java -version; java -Xinternalversion
openjdk version "17.0.8" 2023-07-18
OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition)-17.0.8.0.8+7-GA (build 17.0.8+7)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition)-17.0.8.0.8+7-GA (build 17.0.8+7, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.8+7) for linux-aarch64 JRE (17.0.8+7), built on Jul 18 2023 00:00:00 by "dragonwell" with gcc 10.3.0

temurin17 同样错误. https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz

[root@VM20190228-137 t17]# java -version; java -Xinternalversion
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.9+9) for linux-amd64 JRE (17.0.9+9), built on Oct 17 2023 00:00:00 by "admin" with gcc 10.3.0

【用例日志】

完整日志.txt

简单日志,详情看附件

STDOUT:
### TRACE 1: RNG seed = 8394080858042945440 (0x747dc4110f8e4fa0)
For random generator using seed: 8394080858042945440
To re-run test with same seed value please add "-Djdk.test.lib.random.seed=8394080858042945440" to command line.
[35.239s][warning][codecache] CodeCache is full. Compiler has been disabled.
[35.239s][warning][codecache] Try increasing the code cache size using -XX:ReservedCodeCacheSize=
CodeCache: size=102400Kb used=102395Kb max_used=102395Kb free=4Kb
 bounds [0x00007fb9fa052000, 0x00007fba00452000, 0x00007fba00452000]
 total_blobs=41938 nmethods=38378 adapters=3467
 compilation: disabled (not enough contiguous free space left)
              stopped_count=1, restarted_count=0
 full_count=0
#>  
#>  WARNING: switching log to verbose mode,
#>      because error is complained
#>  
# ERROR: Caught exception in Thread[Thread-304,5,MainThreadGroup]

# ERROR: java.lang.VirtualMachineError: Out of space in CodeCache for adapters
# ERROR:    at java.base/jdk.internal.math.FloatingDecimal$BinaryToASCIIBuffer.dtoa(FloatingDecimal.java:448)
# ERROR:    at java.base/jdk.internal.math.FloatingDecimal.getBinaryToASCIIConverter(FloatingDecimal.java:1785)
# ERROR:    at java.base/jdk.internal.math.FloatingDecimal.getBinaryToASCIIConverter(FloatingDecimal.java:1738)
# ERROR:    at java.base/jdk.internal.math.FloatingDecimal.toJavaFormatString(FloatingDecimal.java:70)
# ERROR:    at java.base/java.lang.Double.toString(Double.java:312)
# ERROR:    at java.base/java.lang.Double.toString(Double.java:769)
# ERROR:    at java.base/java.lang.StringConcatHelper.stringOf(StringConcatHelper.java:453)
# ERROR:    at vm.mlvm.meth.share.Argument.toString(Argument.java:91)
# ERROR:    at java.base/java.lang.String.valueOf(String.java:4220)
# ERROR:    at java.base/java.util.Arrays.toString(Arrays.java:4927)
# ERROR:    at vm.mlvm.meth.share.transform.v2.MHCall.prettyPrint(MHCall.java:159)
# ERROR:    at vm.mlvm.meth.share.transform.v2.MHMacroTF.appendElement(MHMacroTF.java:126)
# ERROR:    at vm.mlvm.meth.share.transform.v2.MHMacroTF.getDescription(MHMacroTF.java:106)
# ERROR:    at vm.mlvm.meth.share.transform.v2.MHTF.toString(MHTF.java:35)
# ERROR:    at vm.mlvm.meth.share.MHTransformationGen.callSequence(MHTransformationGen.java:509)
# ERROR:    at vm.mlvm.meth.share.MHTransformationGen.createAndCallSequence(MHTransformationGen.java:516)
# ERROR:    at vm.mlvm.meth.stress.compiler.deoptimize.Test.runThread(Test.java:164)
# ERROR:    at vm.mlvm.share.MultiThreadedTest.lambda$run$1(MultiThreadedTest.java:71)
# ERROR:    at java.base/java.lang.Thread.run(Thread.java:840)
# ERROR: Test marked failed at vm.mlvm.share.MultiThreadedTest.lambda$run$1(MultiThreadedTest.java:82):
# ERROR: Test marked failed at vm.mlvm.share.MultiThreadedTest.lambda$run$1(MultiThreadedTest.java:82):
# ERROR: Thread Thread[Thread-135,5,MainThreadGroup] failed
# ERROR: Failed runs: 1 of 1
STDERR:
OpenJDK 64-Bit Server VM warning: CodeCache is full. Compiler has been disabled.
OpenJDK 64-Bit Server VM warning: Try increasing the code cache size using -XX:ReservedCodeCacheSize=

【版本信息】

[root@VM20190228-137 d17]# uname -a ; cat /etc/os-release ; free -h; lscpu| head -n 25;java -version; java -Xinternalversion
Linux VM20190228-137 5.10.134-14.al8.x86_64 #1 SMP Thu Apr 27 16:46:29 CST 2023 x86_64 x86_64 x86_64 GNU/Linux
NAME="Alibaba Cloud Linux"
VERSION="3 (Soaring Falcon)"
ID="alinux"
ID_LIKE="rhel fedora centos anolis"
VERSION_ID="3"
PLATFORM_ID="platform:al8"
PRETTY_NAME="Alibaba Cloud Linux 3 (Soaring Falcon)"
ANSI_COLOR="0;31"
HOME_URL="https://www.aliyun.com/"

              total        used        free      shared  buff/cache   available
Mem:           15Gi       588Mi       2.4Gi       754Mi        12Gi        13Gi
Swap:            0B          0B          0B
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  2
Core(s) per socket:  1
Socket(s):           2
NUMA node(s):        1
Vendor ID:           GenuineIntel
BIOS Vendor ID:      Alibaba Cloud
CPU family:          6
Model:               85
Model name:          Intel(R) Xeon(R) Platinum 8163 CPU @ 2.50GHz
BIOS Model name:     pc-i440fx-2.1
Stepping:            4
CPU MHz:             2500.012
BogoMIPS:            5000.02
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           32K
L1i cache:           32K
L2 cache:            1024K
L3 cache:            33792K
NUMA node0 CPU(s):   0-3
openjdk version "17.0.9" 2023-10-17
OpenJDK Runtime Environment (Alibaba Dragonwell Standard Edition)-17.0.8.0.9+7-GA (build 17.0.9+7)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Standard Edition)-17.0.8.0.9+7-GA (build 17.0.9+7, mixed mode, sharing)
OpenJDK 64-Bit Server VM (17.0.9+7) for linux-amd64 JRE (17.0.9+7), built on Oct 17 2023 00:00:00 by "dragonwell" with gcc 7.5.0
sendaoYan commented 1 year ago

https://code.alibaba-inc.com/os-quality/tone-matrix/codereview/14541938