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

(thread) Existing constructors lead to pinned copies of inheritable thread locals

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      generic

      Description

      It appears that currently there's no way to create a thread
      without inheriting inheritable Thread Local Storage (duh), and context
      class loader.

      This is unfortunate as jdk spawns a lot of long-lived
      threads (for example, all shutdown hooks are threads), and
      most of them created from user threads, and thus could cause
      leaks both by holding on to TLS and context class loader.
      (The latter could be addressed by resetting the CCS)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                tdv Dmitri Trembovetski (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: