[ 
https://issues.apache.org/jira/browse/LUCY-263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13983794#comment-13983794
 ] 

Marvin Humphrey commented on LUCY-263:
--------------------------------------

Fix for master:

https://git-wip-us.apache.org/repos/asf?p=lucy.git;a=commit;h=0dcc56eb70e5305ab246c7ffae33dfca528fff7c

Backported fix for 0.3.x:

https://git-wip-us.apache.org/repos/asf?p=lucy.git;a=commit;h=432f79efcd6797f4eca047c2dfe02a55cd5d8407

> MemoryPool's Release_All() should free
> --------------------------------------
>
>                 Key: LUCY-263
>                 URL: https://issues.apache.org/jira/browse/LUCY-263
>             Project: Lucy
>          Issue Type: Bug
>          Components: Index, Util
>    Affects Versions: 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
>            Reporter: Marvin Humphrey
>            Assignee: Marvin Humphrey
>             Fix For: 0.3.4, 0.4.0
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to