-
Bug
-
Resolution: Not an Issue
-
P3
-
11, 18
-
b01
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Behavior of ForkJoinWorkerThread created by defaultForkJoinWorkerThreadFactory have changed after JDK-8237117.
AccessControlContext of the thread is set to the innocuousAcc with no permissions. Previous behavior was to inherit ACC from the thread that created ForkJoinPool.
The same issue occured in JDK 8, was reported and solved in https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8249846.
The fix(which can be found here https://github.com/openjdk/jdk8u/commit/49cfccbfe5a1cdee4ba77b4dbda69f420a84deac ) wasn't however applied to JDK 11.
REGRESSION : Last worked in version 8u301
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The approach is identical as in referenced above
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8249846.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
AccessControlContext of ForkJoinWorkerThread should be inherited from the thread that created it.
ACTUAL -
AccessControlContext of ForkJoinWorkerThread is set to innocuousAcc with no permissions.
FREQUENCY : always
Behavior of ForkJoinWorkerThread created by defaultForkJoinWorkerThreadFactory have changed after JDK-8237117.
AccessControlContext of the thread is set to the innocuousAcc with no permissions. Previous behavior was to inherit ACC from the thread that created ForkJoinPool.
The same issue occured in JDK 8, was reported and solved in https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8249846.
The fix(which can be found here https://github.com/openjdk/jdk8u/commit/49cfccbfe5a1cdee4ba77b4dbda69f420a84deac ) wasn't however applied to JDK 11.
REGRESSION : Last worked in version 8u301
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The approach is identical as in referenced above
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8249846.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
AccessControlContext of ForkJoinWorkerThread should be inherited from the thread that created it.
ACTUAL -
AccessControlContext of ForkJoinWorkerThread is set to innocuousAcc with no permissions.
FREQUENCY : always
- relates to
-
JDK-8249846 Change of behavior after JDK-8237117: Better ForkJoinPool behavior
-
- Resolved
-