Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[upstream][secondary_super_cache][fastdebug]-Xcomp -XX:-TieredCompilation选项下compiler/jvmci/compilerToVM/ReprofileTest.java报错profiling info didn't change after reprofile #903

Open
sendaoYan opened this issue Dec 23, 2024 · 4 comments
Assignees

Comments

@sendaoYan
Copy link
Collaborator

默认:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/427718
false:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/427657
true:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/427676
【环境准备】

BINARY_URL=oss://compiler-ci-bucket/dragonwell11/CI/tar/20241218-003913-968-#597-linux.x86_64.fastdebug.master-b985104eabca8b542fb0e96fb02570b4c4323386.jdk.tar.gz
TEST_IMAGE=oss://compiler-ci-bucket/dragonwell11/CI/tar/20241218-003913-968-#597-linux.x86_64.fastdebug.master-b985104eabca8b542fb0e96fb02570b4c4323386.test-image.tar.gz
JTREG_URL=oss://compiler-ci-bucket/jdk/tools/jtreg-7.3.1.1.zip
[email protected]:dragonwell-project/dragonwell11.git
JDK_BRANCH=master
cd ~/tone/tone-matrix-compiler/common;./ossutil.bin_$(arch) -i;cd -
alias oss="~/tone/tone-matrix-compiler/common/ossutil.bin_$(arch) -e oss-cn-hangzhou.aliyuncs.com -u jvm_dev-b  ~/tone/tone-matrix-compiler/common/ossutil_bin/ossutil -o download -f -r"

部署二进制:
oss $BINARY_URL -l ${BINARY_URL##*/}
mkdir bin-dragonwell11;tar -xf ${BINARY_URL##*/} -C bin-dragonwell11
oss $TEST_IMAGE-l ${TEST_IMAGE##*/}
mkdir images-dragonwell11;tar -xf ${BINARY_URL##*/} -C images-dragonwell11

部署jtreg工具:
oss $JTREG_URL -l ${JTREG_URL##*/};unzip ${JTREG_URL##*/}

部署用例repo
git clone -b $JDK_BRANCH $JDK_REPO jdk-repo-dragonwell11

执行以下命令:
cd bin-dragonwell11&& export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME && cd -
cd jtreg ;export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH;cd -
export test=jdk-repo-dragonwell11/test/hotspot/jtreg/compiler/jvmci/compilerToVM/ReprofileTest.java

默认:jtreg  -nr -v:fail,error -w tmp   -Xcomp -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions  -ea -esa  $test

false:jtreg  -nr -v:fail,error -w tmp   -Xcomp -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:+StressSecondarySupers -XX:+VerifySecondarySupers -ea -esa  $test

true:jtreg  -nr -v:fail,error -w tmp    -Xcomp -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:-InlineSecondarySupersTest -XX:-UseSecondarySupersTable  -XX:-UseSecondarySupersCache -ea -esa $test

【对比测试】

aarch64和x86_64都失败

dragonwell11默认选项fail, dragonwell21默认选项pass
-Xcomp -XX:-TieredCompilation

打开false选项   fail
-Xcomp -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:+StressSecondarySupers -XX:+VerifySecondarySupers

关闭true选项   fail
-Xcomp -XX:-TieredCompilation -XX:+UnlockDiagnosticVMOptions -XX:-InlineSecondarySupersTest -XX:-UseSecondarySupersTable -XX:-UseSecondarySupersCache

【用例日志】

STDERR:
java.lang.RuntimeException: public int compiler.jvmci.compilerToVM.DummyClass.dummyInstanceFunction() : profiling info didn't change after reprofile: expected HotSpotProfilingInfo<exceptionSeen@0: FALSE; exceptionSeen@1: FALSE; exceptionSeen@2: FALSE; exceptionSeen@3: FALSE; exceptionSeen@4: FALSE; exceptionSeen@5: FALSE; exceptionSeen@6: FALSE; exceptionSeen@7: FALSE; executionCount@8: 0; exceptionSeen@8: FALSE; nullSeen@8: FALSE; exceptionSeen@9: FALSE; exceptionSeen@10: FALSE; exceptionSeen@11: FALSE; exceptionSeen@12: FALSE; exceptionSeen@13: FALSE; exceptionSeen@14: FALSE; exceptionSeen@15: FALSE; exceptionSeen@16: FALSE; exceptionSeen@17: FALSE; exceptionSeen@18: FALSE> to not equal HotSpotProfilingInfo<exceptionSeen@0: FALSE; exceptionSeen@1: FALSE; exceptionSeen@2: FALSE; exceptionSeen@3: FALSE; exceptionSeen@4: FALSE; exceptionSeen@5: FALSE; exceptionSeen@6: FALSE; exceptionSeen@7: FALSE; executionCount@8: 0; exceptionSeen@8: FALSE; nullSeen@8: FALSE; exceptionSeen@9: FALSE; exceptionSeen@10: FALSE; exceptionSeen@11: FALSE; exceptionSeen@12: FALSE; exceptionSeen@13: FALSE; exceptionSeen@14: FALSE; exceptionSeen@15: FALSE; exceptionSeen@16: FALSE; exceptionSeen@17: FALSE; exceptionSeen@18: FALSE>
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertNotEquals(Asserts.java:394)
        at jdk.test.lib.Asserts.assertNE(Asserts.java:367)
        at compiler.jvmci.compilerToVM.ReprofileTest.runSanityTest(ReprofileTest.java:114)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
        at compiler.jvmci.compilerToVM.ReprofileTest.main(ReprofileTest.java:64)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:955)

【jdk信息】

java -version;java -Xinternalversion
openjdk version "11.0.25-internal" 2024-10-15
OpenJDK Runtime Environment (fastdebug build 11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline)
OpenJDK 64-Bit Server VM (fastdebug build 11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline, mixed mode)
OpenJDK 64-Bit Server VM (fastdebug 11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline) for linux-amd64 JRE (11.0.25-internal+0-adhoc..dragonwell11.nightly.pipeline), built on Dec 17 2024 16:39:47 by "" with gcc 7.5.0

【系统版本信息】

uname -a ; cat /etc/os-release ; free -h ; lscpu | head -n 25
Linux CompilerTest-x64-3 5.10.134-16.1.al8.x86_64 #1 SMP Thu Dec 7 14:11:24 UTC 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"
UPDATE_ID="9"
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:          123Gi       1.0Gi       112Gi       4.0Mi        10Gi       121Gi
Swap:            0B          0B          0B
Architecture:        x86_64
CPU op-mode(s):      32-bit, 64-bit
Byte Order:          Little Endian
CPU(s):              32
On-line CPU(s) list: 0-31
Thread(s) per core:  2
Core(s) per socket:  16
Socket(s):           1
NUMA node(s):        1
Vendor ID:           GenuineIntel
CPU family:          6
Model:               106
Model name:          Intel(R) Xeon(R) Platinum 8369B CPU @ 2.70GHz
Stepping:            6
CPU MHz:             3523.876
BogoMIPS:            5399.99
Hypervisor vendor:   KVM
Virtualization type: full
L1d cache:           48K
L1i cache:           32K
L2 cache:            1280K
L3 cache:            49152K
NUMA node0 CPU(s):   0-31
Flags:               fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq monitor ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single ibrs_enhanced fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid avx512f avx512dq rdseed adx smap avx512ifma clflushopt clwb avx512cd sha_ni avx512bw avx512vl xsaveopt xsavec xgetbv1 xsaves wbnoinvd arat avx512vbmi pku ospke avx512_vbmi2 gfni vaes vpclmulqdq avx512_vnni avx512_bitalg avx512_vpopcntdq rdpid fsrm arch_capabilities
@sendaoYan
Copy link
Collaborator Author

@sendaoYan
Copy link
Collaborator Author

@sendaoYan
Copy link
Collaborator Author

ziyilin added a commit to ziyilin/dragonwell11 that referenced this issue Dec 24, 2024
Summary: 8257919: [JVMCI] profiling info didn't change after reprofile
Reviewers: kuaiwei, wenjie
Testings: jtreg
Issue: https://bugs.openjdk.org/browse/JDK-8257919,
 dragonwell-project#903
@ziyilin
Copy link
Collaborator

ziyilin commented Dec 24, 2024

Backported https://bugs.openjdk.org/browse/JDK-8257919 with #905

ziyilin added a commit to ziyilin/dragonwell11 that referenced this issue Dec 24, 2024
Summary: 8257919: [JVMCI] profiling info didn't change after reprofile
Reviewers: kuaiwei, wenjie
Testing: jtreg
Issue: https://bugs.openjdk.org/browse/JDK-8257919,
 dragonwell-project#903
ziyilin added a commit to ziyilin/dragonwell11 that referenced this issue Dec 24, 2024
Summary: 8257919: [JVMCI] profiling info didn't change after reprofile
Reviewers: kuaiwei, wenjie
Testing: jtreg
Issue: https://bugs.openjdk.org/browse/JDK-8257919,
 dragonwell-project#903
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants