Skip to content

Commit 38f1ca2

Browse files
Return null if getStackAccessControlContext is done during JDK initialization
1 parent 91a0b99 commit 38f1ca2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/jdk/SecuritySubstitutions.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ static AccessControlContext getStackAccessControlContext() {
118118
* PrintWriter/Logging is available yet. This manifested when
119119
* UseDedicatedVMOperationThread hosted option was set, triggering a runtime crash.
120120
*/
121-
Permissions perms = new Permissions();
122-
perms.add(SecurityConstants.ALL_PERMISSION);
123-
return new AccessControlContext(new ProtectionDomain[]{new ProtectionDomain(null, perms)});
121+
return null;
124122
}
125123
return StackAccessControlContextVisitor.getFromStack();
126124
}

0 commit comments

Comments
 (0)