8344562: Remove security manager dependency from module jdk.jdi
Reviewed-by: kevinw, lmesnik, cjplummer
This commit is contained in:
parent
9be8ac6fbc
commit
c4c6b1fe06
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user