dragonwell-releng / dragonwell-adoptium

0 stars 0 forks source link

【dragonwell11】extended版本在-XX:+UseCompactObjectHeaders选项下jdk-repo/test/jdk/jdk/jfr/event/runtime/TestBiasedLockRevocationEvents.java运行失败 #322

Closed owanqian closed 8 months ago

owanqian commented 9 months ago

https://tone.aliyun-inc.com/ws/xesljfzh/test_result/257488?tab=2 https://tone.aliyun-inc.com/ws/xesljfzh/test_result/257487 【环境准备】

wget -O binary.tar.gz  https://dragonwell.oss-cn-shanghai.aliyuncs.com/11.0.21.18.9-test/Alibaba_Dragonwell_Extended_11.0.21.18.9_x64_linux.tar.gz
wget  -O test-image.tar.gz https://dragonwell.oss-cn-shanghai.aliyuncs.com/11.0.21.18.9-test/Alibaba_Dragonwell_Extended_11.0.21.18.9_x64_linux-testimage.tar.gz

mkdir binary-download && mkdir test-image

tar xzvf binary.tar.gz -C binary-download
tar xzvf test-image.tar.gz -C test-image

cd binary-download && export JAVA_HOME=$PWD ; export PATH=$JAVA_HOME/bin:$PATH ; export TEST_JDK_HOME=$JAVA_HOME && cd -

wget -O jtreg.zip http://114.55.64.175:8666/compiler-ci-bucket/tools/jtreg-6.1.1.zip
unzip jtreg.zip
cd jtreg 
export JT_HOME=$PWD ; export PATH=$PWD/bin:$PATH
cd -

git clone https://github.com/dragonwell-project/dragonwell11.git jdk-repo -b dragonwell_extended-11.0.21.18.9 jdk-repo

native=-nativepath:./test-image/hotspot/jtreg/native
args='-XX:+UseCompactObjectHeaders'
test=jdk-repo/test/jdk/jdk/jfr/event/runtime/TestBiasedLockRevocationEvents.java

jtreg  -nr -v:fail,error -w tmp  $args $native $test

【对比测试】

dragonwell11 release版本和上游temurin均不支持此选项: -XX:+UseCompactObjectHeaders

【用例日志】

ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: assertEquals: expected 0 to equal 1
REASON: User specified action: run main/othervm jdk.jfr.event.runtime.TestBiasedLockRevocationEvents 
TIME:   0.352 seconds
messages:
command: main jdk.jfr.event.runtime.TestBiasedLockRevocationEvents
reason: User specified action: run main/othervm jdk.jfr.event.runtime.TestBiasedLockRevocationEvents 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jfr,java.management
elapsed time (seconds): 0.352
configuration:
Boot Layer
  add modules: jdk.jfr java.management

STDOUT:
STDERR:
java.lang.RuntimeException: assertEquals: expected 0 to equal 1
    at jdk.test.lib.Asserts.fail(Asserts.java:594)
    at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
    at jdk.test.lib.Asserts.assertEquals(Asserts.java:189)
    at jdk.test.lib.Asserts.assertEQ(Asserts.java:166)
    at jdk.jfr.event.runtime.TestBiasedLockRevocationEvents.testSingleRevocation(TestBiasedLockRevocationEvents.java:123)
    at jdk.jfr.event.runtime.TestBiasedLockRevocationEvents.main(TestBiasedLockRevocationEvents.java:51)
    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$MainThread.run(MainWrapper.java:127)
    at java.base/java.lang.Thread.run(Thread.java:955)

JavaTest Message: Test threw exception: java.lang.RuntimeException: assertEquals: expected 0 to equal 1
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: assertEquals: expected 0 to equal 1

【版本信息】

[root@VM20190228-137 a11]# 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       753Mi       288Mi       842Mi        14Gi        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 "11.0.21.17" 2023-10-17
OpenJDK Runtime Environment (Alibaba Dragonwell Extended Edition)-11.0.20.17+8-GA (build 11.0.21.17+8)
OpenJDK 64-Bit Server VM (Alibaba Dragonwell Extended Edition)-11.0.20.17+8-GA (build 11.0.21.17+8, mixed mode)
OpenJDK 64-Bit Server VM (11.0.21.17+8) for linux-amd64 JRE (11.0.21.17+8), built on Dec 12 2023 03:41:33 by "" with gcc 7.5.0
sendaoYan commented 8 months ago

统一在https://github.com/dragonwell-project/dragonwell11/issues/739 这里跟踪,已处理