mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -179,7 +179,7 @@ class ThreadBuilders {
|
|||
public Thread unstarted(Runnable task) {
|
||||
Objects.requireNonNull(task);
|
||||
String name = nextThreadName();
|
||||
var thread = new Thread(group, name, characteristics(), task, stackSize, null);
|
||||
var thread = new Thread(group, name, characteristics(), task, stackSize);
|
||||
if (daemonChanged)
|
||||
thread.daemon(daemon);
|
||||
if (priority != 0)
|
||||
|
@ -353,7 +353,7 @@ class ThreadBuilders {
|
|||
public Thread newThread(Runnable task) {
|
||||
Objects.requireNonNull(task);
|
||||
String name = nextThreadName();
|
||||
Thread thread = new Thread(group, name, characteristics(), task, stackSize, null);
|
||||
Thread thread = new Thread(group, name, characteristics(), task, stackSize);
|
||||
if (daemonChanged)
|
||||
thread.daemon(daemon);
|
||||
if (priority != 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue