mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8327501: Common ForkJoinPool prevents class unloading in some cases
Reviewed-by: alanb
This commit is contained in:
parent
1261740521
commit
53c4714aab
1 changed files with 6 additions and 3 deletions
|
@ -1140,9 +1140,12 @@ public class ForkJoinPool extends AbstractExecutorService {
|
|||
boolean isCommon = (pool.workerNamePrefix == null);
|
||||
@SuppressWarnings("removal")
|
||||
SecurityManager sm = System.getSecurityManager();
|
||||
if (sm == null)
|
||||
return new ForkJoinWorkerThread(null, pool, true, false);
|
||||
else if (isCommon)
|
||||
if (sm == null) {
|
||||
if (isCommon)
|
||||
return new ForkJoinWorkerThread.InnocuousForkJoinWorkerThread(pool);
|
||||
else
|
||||
return new ForkJoinWorkerThread(null, pool, true, false);
|
||||
} else if (isCommon)
|
||||
return newCommonWithACC(pool);
|
||||
else
|
||||
return newRegularWithACC(pool);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue