-
Notifications
You must be signed in to change notification settings - Fork 730
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
JDK 8/11 OPENJDK_METHODHANDLES require AccessController.doPrivileged() #18257
Conversation
Instead of
|
In JDK8 and JDK11, |
Usually, the stacks impacted by
|
Wrapped ClassLoader.loadClass(className, false) with AccessController.doPrivileged(). Signed-off-by: Jason Feng <[email protected]>
6c6f8f6
to
d28c5d6
Compare
Updated to apply both JDK 8/11 when |
|
RI doesn't take the code path
No significant perf hit is expected with the usage of Had an offline chat with @babsingh, the ideal approach for OpenJ9 OPENJDK_METHODHANDLES enabled is to match OpenJDK behaviour as much as possible. which uses |
Personal build (OJ9 MHs + OJDK MHs): https://hyc-runtimes-jenkins.swg-devops.com/view/OpenJ9%20-%20Personal/job/Pipeline-Build-Test-Personal/18509 |
java/rmi/activation/ActivationSystem/stubClassesPermitted/StubClassesPermitted.java
This is a new failure due to this change. |
@JasonFengJ9 I have an alternate proposal: #18264. The scope of the solution is restricted to MethodHandleResolver, which should prevent side-effects. It also has perf benefits via caching. I will request your review in #18264. |
JDK 8/11 OPENJDK_METHODHANDLES requires AccessController.doPrivileged()
Wrapped
ClassLoader.loadClass(className, false)
call withAccessController.doPrivileged()
.Related
Personal build 1
Personal build 2
FYI @babsingh
Signed-off-by: Jason Feng [email protected]