Unexpected change of behavior of ForkJoin common pool clearing thread locals

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 17, 18
    • Component/s: core-libs
    • None

      As part of https://bugs.openjdk.java.net/browse/JDK-8246585 the ForkJoin common pool has changed it behavior wrt ThreadLocals

      The change introduced makes the common pool clear the ThreadLocals since the common pool is now created using InnocuousForkJoinWorkerThread.

      Is this change intended?

      We found this when using logstash-logback-encoder together with the common pool - https://github.com/logfellow/logstash-logback-encoder/issues/722



            Assignee:
            Viktor Klang
            Reporter:
            Klara Ward
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: