-
Notifications
You must be signed in to change notification settings - Fork 733
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
Remove System.getSecurityManager calls from java.base and criu #20939
base: master
Are you sure you want to change the base?
Conversation
@@ -210,7 +210,9 @@ public static void runRunnableInNotCheckpointSafeMode(Runnable run) { | |||
|
|||
@SuppressWarnings("restriction") | |||
private static Unsafe unsafe; | |||
/*[IF JAVA_SPEC_VERSION < 24]*/ |
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.
This file contains other security manager-related API usages, such as AccessController.doPrivileged()
. Are they to be addressed in another PR?
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.
Yes I am planning to do those separately since there are also many uses.
f1b55d8
to
fb0ffb9
Compare
jcl/src/java.base/share/classes/openj9/internal/criu/InternalCRIUSupport.java
Show resolved
Hide resolved
fb0ffb9
to
2e13813
Compare
2e13813
to
0786760
Compare
jcl/src/java.base/share/classes/openj9/internal/criu/InternalCRIUSupport.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Theresa Mammarella <[email protected]>
0786760
to
ef5af02
Compare
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 alinux64 jdk24 |
I think the openjdk failures may be new, I will take a look. |
Remove calls to System.getSecurityManager for JDK 24 since this method is deprecated for removal and returns null. This change also removes javadoc references to SecurityException which no longer apply with the removal of System.getSecurityManager.
I have more pull requests removing SecurityException and System.getSecurityManager coming. I wanted to break this into smaller chunks for review since there are many uses in OpenJ9.
Related: #20563