Uploaded image for project: 'Lucy'
  1. Lucy
  2. LUCY-263

MemoryPool's Release_All() should free

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.1.0 (incubating), 0.2.0 (incubating), 0.2.1 (incubating), 0.2.2 (incubating), 0.3.0 (incubating), 0.3.1, 0.3.2, 0.3.3
    • 0.3.4, 0.4.0
    • Index, Util
    • None

    Description

      The MemoryPool method Release_All() was originally conceived to allow
      reuse of arena memory after being invoked, but that is not how it is
      being used – existing call sites in PostingListWriter, SortWriter and
      SortFieldWriter expect the memory to be freed, resulting in memory
      leaks. This phenomenon is probably behind out-of-memory issues which
      may occur on lengthy indexing sessions. To fix these problems, the most
      straightforward approach is to change the behavior of Release_All() to
      free memory.

      Attachments

        Activity

          People

            marvin Marvin Humphrey
            marvin Marvin Humphrey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: