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

ThreadContainer registry accumulates weak refs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • 19, 21
    • 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

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

              Created:
              Updated:
              Resolved: