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

[JEP416] Add caller sensitive adapter method in java.lang.ClassLoader #14177

Merged

Conversation

babsingh
Copy link
Contributor

@babsingh babsingh commented Dec 17, 2021

For JEP416, a private adapter method, which accepts an additional Class<?>
parameter, is needed for ClassLoader.registerAsParallelCapable(Class<?>).

@CallerSensitiveAdapter is a variant of @CallerSensitive. So, treat
@CallerSensitiveAdapter similar to @CallerSensitive in

  • inlInternalsNewInstanceImpl
  • inlVMGetStackClassLoader
  • inlVMGetStackClass

Closes: #14133
Related: #13852

Signed-off-by: Babneet Singh [email protected]

@babsingh
Copy link
Contributor Author

Testing pending ... will revisit in Jan 2022.

@babsingh
Copy link
Contributor Author

@babsingh babsingh force-pushed the caller_sensitive_adapter_methods branch 7 times, most recently from 3437bdf to 54106ee Compare January 7, 2022 19:24
For JEP416, a private adapter method, which accepts an additional Class<?>
parameter, is needed for ClassLoader.registerAsParallelCapable(Class<?>).

@CallerSensitiveAdapter is a variant of @CallerSensitive. So, treat
@CallerSensitiveAdapter similar to @CallerSensitive in
- inlInternalsNewInstanceImpl
- inlVMGetStackClassLoader
- inlVMGetStackClass

Closes: eclipse-openj9#14133
Related: eclipse-openj9#13852

Signed-off-by: Babneet Singh <[email protected]>
@babsingh babsingh force-pushed the caller_sensitive_adapter_methods branch from 54106ee to d3a079c Compare January 13, 2022 04:58
@babsingh babsingh changed the title [JEP416] Add caller sensitive adapter methods in OpenJ9 classes [JEP416] Add caller sensitive adapter method in java.lang.ClassLoader Jan 13, 2022
@babsingh babsingh marked this pull request as ready for review January 13, 2022 05:02
@babsingh
Copy link
Contributor Author

I have divided this work into two PRs. This PR contains the changes needed to fix the deadlock in #14133. The other PR is #14267, which adds caller sensitive adapter methods in j.l.Class. I have opened #14267 since I am encountering an issue while adding caller sensitive adapter methods in j.l.Class. More details about the issue will be discussed in #14267. @JasonFengJ9 @tajila Can you please review this PR?

@JasonFengJ9
Copy link
Member

Oops, missed this one, will look at it this afternoon.

Copy link
Member

@JasonFengJ9 JasonFengJ9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tajila
Copy link
Contributor

tajila commented Jan 18, 2022

Jenkins test sanity win jdk8

@tajila
Copy link
Contributor

tajila commented Jan 18, 2022

Jenkins test sanity plinux jdk17

@tajila
Copy link
Contributor

tajila commented Jan 18, 2022

Jenkins test sanity xlinux jdk18

@tajila tajila merged commit 2eaaf65 into eclipse-openj9:master Jan 19, 2022
babsingh added a commit to babsingh/aqa-tests that referenced this pull request Jan 20, 2022
DelegateTest was fixed by eclipse-openj9/openj9#14177.
IllegalArgumentsTest is disabled due to eclipse-openj9/openj9#14084.

Signed-off-by: Babneet Singh <[email protected]>
babsingh added a commit to babsingh/aqa-tests that referenced this pull request Jan 20, 2022
DelegateTest was fixed by eclipse-openj9/openj9#14177.

IllegalArgumentsTest is disabled due to eclipse-openj9/openj9#14084.

Signed-off-by: Babneet Singh <[email protected]>
Mesbah-Alam pushed a commit to adoptium/aqa-tests that referenced this pull request Jan 20, 2022
DelegateTest was fixed by eclipse-openj9/openj9#14177.

IllegalArgumentsTest is disabled due to eclipse-openj9/openj9#14084.

Signed-off-by: Babneet Singh <[email protected]>
@babsingh babsingh deleted the caller_sensitive_adapter_methods branch February 18, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JDK18 java/lang/ClassLoader/deadlock/DelegateTest.java - unrecognised: -Xlog:class+load & java timed out
4 participants