Uploaded image for project: 'Mnemonic'
  1. Mnemonic
  2. MNEMONIC-215

Memory leak when LinkedList element is destroyed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 0.6.0-incubating
    • None
    • None

    Description

      Here is the implementation of the destroy function in LinkedList node

      @Override
      public void destroy() throws RetrieveDurableEntityError {
      m_holder.destroy();
      if (null != m_item)

      { m_item.destroy(); m_item = null; }

      if (null != m_next)

      { m_next.destroy(); m_next = null; }

      }

      Next is destroyed only when m_next is not null. m_next can also be null if next item is not loaded into memory from PMem. It is required to first restore the item using getNext and then call destroy.

      Attachments

        Issue Links

          Activity

            People

              johnugeorge Johnu George
              johnugeorge Johnu George
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: