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

InstanceKlass::_dependencies list isn't cleared from empty nmethodBucket entries

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b93

      Backports

        Description

        Before nmethod is unloaded, all relevant dependencies are removed. But empty nmethodBucket entries are kept. It's a memory leak.
        InstanceKlass::clean_dependent_nmethods() does the right job, but it's rarely invoked (only G1KlassCleaningTask::clean_klass() does it).

          Issue Links

            Activity

            Hide
            vlivanov Vladimir Ivanov added a comment -
            ILW = MLH = P4
            I = M = memory leak
            L = L = hard to exhaust all memory
            W = H = no workaround known
            Show
            vlivanov Vladimir Ivanov added a comment - ILW = MLH = P4 I = M = memory leak L = L = hard to exhaust all memory W = H = no workaround known
            Hide
            stefank Stefan Karlsson added a comment -
            This is needed to fix this memory leak:
            1) Adds calls to delete the dependency entries for all GCs, not only G1.
            2) Delete the dependency entries immediately when called from non-GC code.
            Show
            stefank Stefan Karlsson added a comment - This is needed to fix this memory leak: 1) Adds calls to delete the dependency entries for all GCs, not only G1. 2) Delete the dependency entries immediately when called from non-GC code.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/029a2b20b570
            User: stefank
            Date: 2015-10-21 09:53:03 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/029a2b20b570 User: stefank Date: 2015-10-21 09:53:03 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/029a2b20b570
            User: lana
            Date: 2015-11-18 23:53:22 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/029a2b20b570 User: lana Date: 2015-11-18 23:53:22 +0000

              People

              • Assignee:
                stefank Stefan Karlsson
                Reporter:
                vlivanov Vladimir Ivanov
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: