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

jdk24 OpenJDK java/lang/Thread/virtual/Reflection timeout #21035

Open
pshipton opened this issue Jan 29, 2025 · 2 comments
Open

jdk24 OpenJDK java/lang/Thread/virtual/Reflection timeout #21035

pshipton opened this issue Jan 29, 2025 · 2 comments

Comments

@pshipton
Copy link
Member

https://openj9-jenkins.osuosl.org/job/Test_openjdk24_j9_sanity.openjdk_x86-64_linux_Nightly_testList_1/3/
jdk_lang_1
java/lang/Thread/virtual/Reflection.java - timeout

01:52:43  "pool-1-thread-1" prio=5 Id=23 TIMED_WAITING
01:52:43  	at java.base@24-internal/jdk.internal.misc.Unsafe.park(Native Method)
01:52:43  	at java.base@24-internal/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:271)
01:52:43  	at java.base@24-internal/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1802)
01:52:43  	at java.base@24-internal/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1166)
01:52:43  	at java.base@24-internal/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:883)
01:52:43  	at java.base@24-internal/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1021)
01:52:43  	at java.base@24-internal/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1081)
01:52:43  	at java.base@24-internal/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:619)
01:52:43  	at java.base@24-internal/java.lang.Thread.run(Thread.java:1458)
01:52:43  
01:52:43  "VirtualThread-unblocker" prio=5 Id=25 RUNNABLE
01:52:43  	at java.base@24-internal/java.lang.VirtualThread.takeVirtualThreadListToUnblock(Native Method)
01:52:43  	at java.base@24-internal/java.lang.VirtualThread.unblockVirtualThreads(VirtualThread.java:1498)
01:52:43  	at java.base@24-internal/java.lang.Thread.run(Thread.java:1458)
01:52:43  	at java.base@24-internal/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:148)
01:52:43  
01:52:43  "AgentVMThread" prio=5 Id=334 WAITING
01:52:43  	at java.base@24-internal/jdk.internal.misc.Unsafe.park(Native Method)
01:52:43  	at java.base@24-internal/java.util.concurrent.locks.LockSupport.park(LockSupport.java:223)
01:52:43  	at java.base@24-internal/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:789)
01:52:43  	at java.base@24-internal/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1138)
01:52:43  	at java.base@24-internal/java.util.concurrent.CountDownLatch.await(CountDownLatch.java:230)
01:52:43  	at java.base@24-internal/java.lang.VirtualThread.joinNanos(VirtualThread.java:1004)
01:52:43  	at java.base@24-internal/java.lang.Thread.join(Thread.java:1878)
01:52:43  	at java.base@24-internal/java.lang.Thread.join(Thread.java:1971)
01:52:43  	at Reflection.testInvokeStatic6(Reflection.java:167)
@pshipton pshipton added this to the Java 24 (0.50) milestone Jan 29, 2025
@pshipton pshipton changed the title java/lang/Thread/virtual/Reflection timeout jdk24 OpenJDK java/lang/Thread/virtual/Reflection timeout Jan 29, 2025
@babsingh
Copy link
Contributor

babsingh commented Jan 29, 2025

The test times out due to the lack of VirtualThread (VT) pinning support. Once OpenJ9 implements VT pinning, the top two methods in the stack trace below (unblockVirtualThreads and takeVirtualThreadListToUnblock) should function correctly, resolving the issue.

01:52:43  "VirtualThread-unblocker" prio=5 Id=25 RUNNABLE
01:52:43  	at java.base@24-internal/java.lang.VirtualThread.takeVirtualThreadListToUnblock(Native Method)
01:52:43  	at java.base@24-internal/java.lang.VirtualThread.unblockVirtualThreads(VirtualThread.java:1498)
01:52:43  	at java.base@24-internal/java.lang.Thread.run(Thread.java:1458)
01:52:43  	at java.base@24-internal/jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:148)

Assigning it to @fengxue-IS since it is related to VT pinning support.

@tajila tajila added the vt label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants