Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8273124

Change of behavior after JDK-8237117: Better ForkJoinPool behavior - JDK 11

    XMLWordPrintable

Details

    • b01
    • 11
    • generic
    • generic

    Description

      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


      Attachments

        Issue Links

          Activity

            People

              alanb Alan Bateman
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: