Skip to content

Commit

Permalink
8344562: Remove security manager dependency from module jdk.jdi
Browse files Browse the repository at this point in the history
Reviewed-by: kevinw, lmesnik, cjplummer
  • Loading branch information
Brian Burkhalter committed Nov 20, 2024
1 parent 9be8ac6 commit c4c6b1f
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,6 @@ public class VirtualMachineManagerImpl implements VirtualMachineManagerService {
private static VirtualMachineManagerImpl vmm;

public static VirtualMachineManager virtualMachineManager() {
@SuppressWarnings("removal")
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
JDIPermission vmmPermission =
new JDIPermission("virtualMachineManager");
sm.checkPermission(vmmPermission);
}
synchronized (lock) {
if (vmm == null) {
vmm = new VirtualMachineManagerImpl();
Expand Down

0 comments on commit c4c6b1f

Please sign in to comment.