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

jdk20 OpenJDK jdk/internal/misc/ThreadFlock/WithScopedValue UnsatisfiedLinkError Thread.scopedValueCache #16657

Closed
pshipton opened this issue Feb 2, 2023 · 1 comment · Fixed by #16678
Assignees
Labels
comp:vm jdk20 project:loom Used to track Project Loom related work test failure

Comments

@pshipton
Copy link
Member

pshipton commented Feb 2, 2023

https://openj9-jenkins.osuosl.org/job/Test_openjdk20_j9_sanity.openjdk_aarch64_linux_OpenJDK20/1/
All platforms, not platform specific.
jdk_lang
jdk/internal/misc/ThreadFlock/WithScopedValue.java

10:30:29  STDOUT:
10:30:29  test WithScopedValue.testInheritsScopedValue(java.util.concurrent.Executors$DefaultThreadFactory@1442703a): failure
10:30:29  java.lang.UnsatisfiedLinkError: java/lang/Thread.scopedValueCache()[Ljava/lang/Object;
10:30:29  	at java.base/java.lang.Access.scopedValueCache(Access.java:455)
10:30:29  	at jdk.incubator.concurrent/jdk.incubator.concurrent.ScopedValue.scopedValueCache(ScopedValue.java:645)
10:30:29  	at jdk.incubator.concurrent/jdk.incubator.concurrent.ScopedValue$Cache.invalidate(ScopedValue.java:829)
10:30:29  	at jdk.incubator.concurrent/jdk.incubator.concurrent.ScopedValue$Carrier.call(ScopedValue.java:367)
10:30:29  	at jdk.incubator.concurrent/jdk.incubator.concurrent.ScopedValue.where(ScopedValue.java:494)
10:30:29  	at WithScopedValue.testInheritsScopedValue(WithScopedValue.java:63)
@pshipton
Copy link
Member Author

pshipton commented Feb 2, 2023

@tajila fyi

@pshipton pshipton changed the title jdk/internal/misc/ThreadFlock/WithScopedValue.java jdk20 OpenJDK jdk/internal/misc/ThreadFlock/WithScopedValue testInheritsScopedValue UnsatisfiedLinkError Thread.scopedValueCache Feb 2, 2023
@tajila tajila added the project:loom Used to track Project Loom related work label Feb 2, 2023
@pshipton pshipton changed the title jdk20 OpenJDK jdk/internal/misc/ThreadFlock/WithScopedValue testInheritsScopedValue UnsatisfiedLinkError Thread.scopedValueCache jdk20 OpenJDK jdk/internal/misc/ThreadFlock/WithScopedValue UnsatisfiedLinkError Thread.scopedValueCache Feb 2, 2023
babsingh added a commit to babsingh/openj9 that referenced this issue Feb 14, 2023
In JDK20, extentLocalCache is renamed to scopedValueCache.

JDK19 and JDK20 changes are completely segregated to avoid
cross-contamination if the implementation differs a lot across
JDK versions.

TODO: Thread.findScopedValueBindings needs to be implemented.
This is tracked in eclipse-openj9#16677.

Fixes: eclipse-openj9#16657

Signed-off-by: Babneet Singh <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:vm jdk20 project:loom Used to track Project Loom related work test failure
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants