Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2917

SpillableMemoryManager memory leak for WeakReference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.11
    • 0.11
    • impl
    • None
    • Patch Available

    Description

      Sine the SpillableMemoryManager subscribed the memory notifications, and hold a weak reference of all the spillable, if there's too many weak reference and the memory exceeds the threshold, the current code will not clear the spillable weak references.

      the details is illustrated in the attached screenshot of a MemoryAnalyzer.
      So we need to clear the spillables when the memory notifications is received.

      Attachments

        1. SpillableMemoryManager.patch
          2 kB
          Haitao Yao
        2. aa.jpg
          345 kB
          Haitao Yao

        Activity

          People

            haitao.yao Haitao Yao
            haitao.yao Haitao Yao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: