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]-Xcomp选项运行tools/javac/completionDeps/DepsAndAnno.java用例超时 #171

Open
sendaoYan opened this issue Nov 3, 2023 · 11 comments
Assignees

Comments

@sendaoYan
Copy link
Collaborator

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/langtools/tools/javac/completionDeps/DepsAndAnno.java
args='-Xcomp'
native='-nativepath:./test-image/hotspot/jtreg/native'
jtreg -w tmp -nr -v:fail,error $native  $args $test

【对比测试】
jdk-repo/test/langtools/tools/javac/completionDeps/DepsAndAnno.java
jdk-repo/test/langtools/tools/javac/launcher/SourceLauncherTest.java

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


【用例日志】


"MainThread" #32 prio=5 os_prio=0 cpu=249.89ms elapsed=4.76s tid=0x00007fc3ac3daa00 nid=0x9f60e waiting on condition  [0x00007fc2ea17c000]
   java.lang.Thread.State: RUNNABLE
        at java.nio.file.Files.newByteChannel([email protected]/Files.java:426)
        at java.nio.file.spi.FileSystemProvider.newInputStream([email protected]/FileSystemProvider.java:422)
        at java.nio.file.Files.newInputStream([email protected]/Files.java:160)
        at com.sun.tools.javac.file.PathFileObject.openInputStream([email protected]/PathFileObject.java:461)
        at com.sun.tools.javac.file.PathFileObject.getCharContent([email protected]/PathFileObject.java:482)
        at com.sun.tools.javac.main.JavaCompiler.readSource([email protected]/JavaCompiler.java:594)
        at com.sun.tools.javac.main.JavaCompiler.parse([email protected]/JavaCompiler.java:657)
        at com.sun.tools.javac.main.JavaCompiler.parseFiles([email protected]/JavaCompiler.java:1006)
        at com.sun.tools.javac.main.JavaCompiler.parseFiles([email protected]/JavaCompiler.java:993)
        at com.sun.tools.javac.main.JavaCompiler.compile([email protected]/JavaCompiler.java:919)
        at com.sun.tools.javac.main.Main.compile([email protected]/Main.java:317)
        at com.sun.tools.javac.main.Main.compile([email protected]/Main.java:176)
        at com.sun.tools.javac.Main.compile([email protected]/Main.java:82)
        at toolbox.JavacTask.runCommand(JavacTask.java:394)
        at toolbox.JavacTask.run(JavacTask.java:328)
        at DepsAndAnno.main(DepsAndAnno.java:53)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0([email protected]/Native Method)
        at jdk.internal.reflect.NativeMethodAccessorImpl.invoke([email protected]/NativeMethodAccessorImpl.java:77)
        at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke([email protected]/DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke([email protected]/Method.java:568)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.lang.Thread.run([email protected]/Thread.java:833)

【版本信息】

[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 sendaoYan self-assigned this Nov 3, 2023
@sendaoYan
Copy link
Collaborator Author

sendaoYan commented Nov 3, 2023

上游最新主干分支也是超时,-Xcomp需要30s才能跑完

image

DepsAndAnno-Xcomp.jtr.txt
DepsAndAnno-Xmixed.jtr.txt

@sendaoYan
Copy link
Collaborator Author

tools/javac/launcher/SourceLauncherTest.java类似

@sendaoYan
Copy link
Collaborator Author

@sendaoYan
Copy link
Collaborator Author

sendaoYan commented Nov 3, 2023

jdk/jfr/startupargs/TestStartDuration.java 类似

image

TestStartDuration-Xcomp.jtr.txt
TestStartDuration-Xmixed.jtr.txt

@sendaoYan
Copy link
Collaborator Author

sendaoYan commented Nov 3, 2023

test/langtools/tools/javac/Paths/ClassPath.java 类似

image

ClassPath.jtr-Xcomp.txt
ClassPath.jtr-Xmixed.txt

@sendaoYan
Copy link
Collaborator Author

sendaoYan commented Nov 3, 2023

@sendaoYan
Copy link
Collaborator Author

sendaoYan commented Nov 3, 2023

@sendaoYan
Copy link
Collaborator Author

sendaoYan commented Nov 3, 2023

@sendaoYan
Copy link
Collaborator Author

sendaoYan commented Nov 3, 2023

@sendaoYan
Copy link
Collaborator Author

@sendaoYan
Copy link
Collaborator Author

openjdk/jdk17u-dev#3102

@sendaoYan sendaoYan reopened this Dec 7, 2024
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

1 participant