-
Notifications
You must be signed in to change notification settings - Fork 728
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
[JEP416] Add caller sensitive adapter method in java.lang.ClassLoader #14177
Conversation
Testing pending ... will revisit in Jan 2022. |
3437bdf
to
54106ee
Compare
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]>
54106ee
to
d3a079c
Compare
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? |
Oops, missed this one, will look at it this afternoon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Jenkins test sanity win jdk8 |
Jenkins test sanity plinux jdk17 |
Jenkins test sanity xlinux jdk18 |
DelegateTest was fixed by eclipse-openj9/openj9#14177. IllegalArgumentsTest is disabled due to eclipse-openj9/openj9#14084. Signed-off-by: Babneet Singh <[email protected]>
DelegateTest was fixed by eclipse-openj9/openj9#14177. IllegalArgumentsTest is disabled due to eclipse-openj9/openj9#14084. Signed-off-by: Babneet Singh <[email protected]>
DelegateTest was fixed by eclipse-openj9/openj9#14177. IllegalArgumentsTest is disabled due to eclipse-openj9/openj9#14084. Signed-off-by: Babneet Singh <[email protected]>
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
ininlInternalsNewInstanceImpl
inlVMGetStackClassLoader
inlVMGetStackClass
Closes: #14133
Related: #13852
Signed-off-by: Babneet Singh [email protected]