mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8343981: Remove usage of security manager from Thread and related classes
Reviewed-by: rriggs, yzheng
This commit is contained in:
parent
dbf23466af
commit
5e01c40b19
10 changed files with 54 additions and 282 deletions
|
@ -47,7 +47,6 @@ import java.nio.channels.Channel;
|
|||
import java.nio.channels.spi.SelectorProvider;
|
||||
import java.nio.charset.CharacterCodingException;
|
||||
import java.nio.charset.Charset;
|
||||
import java.security.AccessControlContext;
|
||||
import java.security.AccessController;
|
||||
import java.security.CodeSource;
|
||||
import java.security.PrivilegedAction;
|
||||
|
@ -2134,9 +2133,6 @@ public final class System {
|
|||
public void registerShutdownHook(int slot, boolean registerShutdownInProgress, Runnable hook) {
|
||||
Shutdown.add(slot, registerShutdownInProgress, hook);
|
||||
}
|
||||
public Thread newThreadWithAcc(Runnable target, @SuppressWarnings("removal") AccessControlContext acc) {
|
||||
return new Thread(target, acc);
|
||||
}
|
||||
@SuppressWarnings("removal")
|
||||
public void invokeFinalize(Object o) throws Throwable {
|
||||
o.finalize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue