lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zarquon78 (JIRA)" <>
Subject [jira] Created: (LUCENENET-40) Memory leaks in 1.9.1-004-27Nov06 from Thread-Local Storage
Date Mon, 04 Jun 2007 18:23:25 GMT
Memory leaks in 1.9.1-004-27Nov06 from Thread-Local Storage

                 Key: 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.

// 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.

View raw message