eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.29k stars 722 forks source link

JDK24 java/lang/Thread/virtual tests IllegalArgumentException: OpenJ9 doesn't support the API #20706

Open JasonFengJ9 opened 3 days ago

JasonFengJ9 commented 3 days ago

Failure link

From an internal build(ubu22-aarch64-2):

00:07:31  openjdk version "24-internal" 2025-03-18
00:07:31  OpenJDK Runtime Environment (build 24-internal-adhoc.jenkins.BuildJDKnextaarch64linuxPersonal)
00:07:31  Eclipse OpenJ9 VM (build master-4ee9b77dbbd, JRE 24 Linux aarch64-64-Bit Compressed References 20241128_142 (JIT enabled, AOT enabled)
00:07:31  OpenJ9   - 4ee9b77dbbd
00:07:31  OMR      - 494474f6819
00:07:31  JCL      - 91383efdb6c based on jdk-24+25)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

00:09:01  ===============================================
00:09:01  Running test jdk_lang_1 ...
00:09:01  ===============================================
00:09:01  jdk_lang_1 Start Time: Thu Nov 28 05:09:00 2024 Epoch Time (ms): 1732770540869
00:09:01  variation: -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage Mode650
00:09:01  JVM_OPTIONS:  -Xdump:system:none -Xdump:heap:none -Xdump:system:events=gpf+abort+traceassert+corruptcache -XX:-JITServerTechPreviewMessage -XX:-UseCompressedOops -Xverbosegclog 

01:19:58  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#default

01:19:58  STARTED    MonitorEnterExit::testReleaseWhenBlocked 'testReleaseWhenBlocked()'
01:19:58  org.junit.jupiter.engine.execution.ConditionEvaluationException: Failed to evaluate condition [org.junit.jupiter.api.condition.DisabledIfCondition]: OpenJ9 doesn't support the API i.e. the VM option might exist, but OpenJ9 can't retrieve it
01:19:58    at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:215)
01:19:58    at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:197)
01:19:58    at java.base/java.util.stream.StreamSpliterators$WrappingSpliterator.tryAdvance(StreamSpliterators.java:305)
01:19:58    at java.base/java.util.stream.Streams$ConcatSpliterator.tryAdvance(Streams.java:728)
01:19:58    at java.base/java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:147)
01:19:58    at java.base/java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:601)
01:19:58    at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:587)
01:19:58    at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:573)
01:19:58    at java.base/java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:150)
01:19:58    at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:270)
01:19:58    at java.base/java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:687)
01:19:58    at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
01:19:58    at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
01:19:58  Caused by: java.lang.IllegalArgumentException: OpenJ9 doesn't support the API i.e. the VM option might exist, but OpenJ9 can't retrieve it
01:19:58    at jdk.management/com.sun.management.internal.ExtendedHotSpotDiagnostic.getVMOption(ExtendedHotSpotDiagnostic.java:79)
01:19:58    at LockingMode.isLegacy(LockingMode.java:35)
01:19:58    at java.base/java.lang.reflect.Method.invoke(Method.java:571)
01:19:58    at java.base/java.util.Optional.map(Optional.java:260)
01:19:58    ... 13 more
01:19:58  FAILED     MonitorEnterExit::testReleaseWhenBlocked 'testReleaseWhenBlocked()'

01:20:06  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#LM_LEGACY

01:20:09  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#LM_LIGHTWEIGHT

01:20:59  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#Xcomp-LM_LEGACY

01:21:05  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#Xcomp-LM_LIGHTWEIGHT

01:21:55  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#Xcomp-noTieredCompilation-LM_LEGACY

01:21:59  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#Xcomp-noTieredCompilation-LM_LIGHTWEIGHT

01:22:59  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#Xcomp-TieredStopAtLevel1-LM_LEGACY

01:23:02  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#Xcomp-TieredStopAtLevel1-LM_LIGHTWEIGHT

01:23:05  TEST: java/lang/Thread/virtual/MonitorEnterExit.java#Xint-LM_LEGACY

...

01:44:37  jdk_lang_1_FAILED

50x grinder - all failed

github-actions[bot] commented 3 days ago

Issue Number: 20706 Status: Open Recommended Components: comp:vm, comp:jit, comp:test