ThreadContainer registry accumulates weak refs

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 21
    • Affects Version/s: 19, 21
    • Component/s: core-libs
    • b24
    • Verified

      This is memory leak / regression since JDK 19 due to the addition of the registry of thread containers. If you create lots of thread pools, don’t close them, let them be GC’ed, then the weak refs to these contains aren't expunged from the registry. See analysis from Alexey Gavrilov here:

      https://mail.openjdk.org/pipermail/loom-dev/2023-May/005613.html

            Assignee:
            Alan Bateman
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: