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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • None
    • generic
    • generic

      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)

            Unassigned Unassigned
            tdv Dmitri Trembovetski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: