You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
When running the following programs, OpenJ9 outputs Thread[Thread-3,5,main] while other JVMs(like Hotspot) output Thread[Thread-0,5,main]. It seems that OpenJ9 executes wrong initialize operation.
Testcase
public class MyJVMTest {
public static void main(String[] args) throws Exception {
Runnable runnable = () -> {};
Thread thread = new Thread(runnable);
System.out.println(thread);
}
}
JDK Version
This behavior exist in JDK 8 and 11:
openjdk version "1.8.0_362-internal"
OpenJDK Runtime Environment (build 1.8.0_362-internal-root_2023_01_28_12_10-b00)
Eclipse OpenJ9 VM (build master-6cadc1d9f, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20230128_000000 (JIT enabled, AOT enabled)
OpenJ9 - 6cadc1d9f
OMR - 4c214a89c
JCL - 21da58127f based on jdk8u362-b09)
openjdk version "11.0.18-internal"
OpenJDK Runtime Environment (build 11.0.18-internal+0-adhoc.root.openj9-openjdk-jdk11)
Eclipse OpenJ9 VM (build master-6cadc1d9f, JRE 11 Linux amd64-64-Bit Compressed References 20230128_000000 (JIT enabled, AOT enabled)
OpenJ9 - 6cadc1d9f
OMR - 4c214a89c
JCL - b399e866bb based on jdk-11.0.18+10)
The text was updated successfully, but these errors were encountered:
Description
When running the following programs, OpenJ9 outputs
Thread[Thread-3,5,main]
while other JVMs(like Hotspot) outputThread[Thread-0,5,main]
. It seems that OpenJ9 executes wrong initialize operation.Testcase
JDK Version
This behavior exist in JDK 8 and 11:
The text was updated successfully, but these errors were encountered: