Memory leaks in 1.9.1-004-27Nov06 from Thread-Local Storage
-----------------------------------------------------------
Key: LUCENENET-40
URL: https://issues.apache.org/jira/browse/LUCENENET-40
Project: Lucene.Net
Issue Type: Bug
Environment: Windows XP, .NET 1.1
Reporter: zarquon78
In both TermInfosReader and SegmentReader, the call to
System.Threading.Thread.SetData() to release the data is no longer performed.
This leads to the data remaining attached to the thread. This call is in the
now commented-out finalized. By adding the call to the Close() or DoClose()
method, the leak is removed.
I.e.,
// TermInfosReader.cs
public /*internal*/ void Close()
{
// ...
System.Threading.Thread.SetData(enumerators, null); // Added
}
// SegmentReader.cs
protected internal override void DoClose()
{
// ...
System.Threading.Thread.SetData(termVectorsLocal, null); // Added
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.