Skip to content

Commit

Permalink
Revert "8327501: Common ForkJoinPool prevents class unloading in some…
Browse files Browse the repository at this point in the history
… cases"

This reverts commit 53c4714.
  • Loading branch information
cost0much committed Oct 11, 2024
1 parent 173e2ac commit da77078
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1135,12 +1135,9 @@ public final ForkJoinWorkerThread newThread(ForkJoinPool pool) {
boolean isCommon = (pool.workerNamePrefix == null);
@SuppressWarnings("removal")
SecurityManager sm = System.getSecurityManager();
if (sm == null) {
if (isCommon)
return new ForkJoinWorkerThread.InnocuousForkJoinWorkerThread(pool);
else
return new ForkJoinWorkerThread(null, pool, true, false);
} else if (isCommon)
if (sm == null)
return new ForkJoinWorkerThread(null, pool, true, false);
else if (isCommon)
return newCommonWithACC(pool);
else
return newRegularWithACC(pool);
Expand Down

0 comments on commit da77078

Please sign in to comment.