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

ThreadContainer registry accumulates weak refs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 21
    • 19, 21
    • core-libs
    • b24
    • Verified

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: