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.27k stars 721 forks source link

JDK19 Loom : jdk_lang_1_FAILED Compilation failed - ContinuationScope cannot be converted to Option #15163

Open JasonFengJ9 opened 2 years ago

JasonFengJ9 commented 2 years ago

Failure link

From an internal build job/Test_openjdknext_j9_sanity.openjdk_aarch64_linux_Personal/2/consoleFull(ub18-aarch64-4):

12:36:01  openjdk version "19-internal" 2022-09-20
12:36:01  OpenJDK Runtime Environment (build 19-internal-adhoc.jenkins.BuildJDKnextaarch64linuxPersonal)
12:36:01  Eclipse OpenJ9 VM (build loom_patch-1e7a31c30d4, JRE 19 Linux aarch64-64-Bit Compressed References 20220531_28 (JIT enabled, AOT enabled)
12:36:01  OpenJ9   - 1e7a31c30d4
12:36:01  OMR      - e542d083538
12:36:01  JCL      - a66f9edf71a based on jdk-19+24)

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

Optional info

Failure output (captured from console output)

12:54:11  TEST: jdk/internal/vm/Continuation/Basic.java

13:42:51  /home/jenkins/workspace/Test_openjdknext_j9_sanity.openjdk_ppc64le_linux_Personal/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/internal/vm/Continuation/java.base/java/lang/StackWalkerHelper.java:44: error: no suitable method found for getInstance(ContinuationScope)
13:42:51          return StackWalker.getInstance(scope);
13:42:51                            ^
13:42:51      method StackWalker.getInstance(Option) is not applicable
13:42:51        (argument mismatch; ContinuationScope cannot be converted to Option)
13:42:51      method StackWalker.getInstance(Set<Option>) is not applicable
13:42:51        (argument mismatch; ContinuationScope cannot be converted to Set<Option>)
13:42:51  /home/jenkins/workspace/Test_openjdknext_j9_sanity.openjdk_ppc64le_linux_Personal/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/internal/vm/Continuation/java.base/java/lang/StackWalkerHelper.java:47: error: incompatible types: ContinuationScope cannot be converted to int
13:42:51      public static StackFrame[] getStackFrames(ContinuationScope scope)     { return getStackFrames(StackWalker.getInstance(OPTS, scope)); }
13:42:51                                                                                                                                   ^
13:42:51  Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
13:42:51  2 errors
13:42:51  
13:42:51  TEST RESULT: Failed. Compilation failed: Compilation failed

12:54:13  TEST: jdk/internal/vm/Continuation/Scoped.java

This is across platform, probably due to missing Continuation related implementation.

fengxue-IS commented 2 years ago

did some digging with the extension code, this test is using a non-public API in StackWalker class StackWalker.getInstance(ContinuationScope) which has package access, hence this test doesn't apply to OpenJ9