8344562: Remove security manager dependency from module jdk.jdi

Reviewed-by: kevinw, lmesnik, cjplummer
This commit is contained in:
Brian Burkhalter 2024-11-20 16:01:01 +00:00
parent 9be8ac6fbc
commit c4c6b1fe06

View File

@ -59,13 +59,6 @@ public class VirtualMachineManagerImpl implements VirtualMachineManagerService {
private static VirtualMachineManagerImpl vmm; private static VirtualMachineManagerImpl vmm;
public static VirtualMachineManager virtualMachineManager() { public static VirtualMachineManager virtualMachineManager() {
@SuppressWarnings("removal")
SecurityManager sm = System.getSecurityManager();
if (sm != null) {
JDIPermission vmmPermission =
new JDIPermission("virtualMachineManager");
sm.checkPermission(vmmPermission);
}
synchronized (lock) { synchronized (lock) {
if (vmm == null) { if (vmm == null) {
vmm = new VirtualMachineManagerImpl(); vmm = new VirtualMachineManagerImpl();