[ http://issues.apache.org/jira/browse/LUCENE-750?page=all ]
Yonik Seeley updated LUCENE-750: -------------------------------- Attachment: IndexInput_finalizer.patch Changes: - moved finalizer to the resource that actually needs it... the Descriptor (subclass of RandomAccessFile). The Descriptor does not get cloned, so we eliminate the extra finalizer per IndexInput clone. - Descriptor is now the class that keeps track of if it has been closed or not. - made Descriptor static... it didn't need to be a normal inner class. > don't use finalizers for FSIndexInput clones > -------------------------------------------- > > Key: LUCENE-750 > URL: http://issues.apache.org/jira/browse/LUCENE-750 > Project: Lucene - Java > Issue Type: Improvement > Components: Search > Affects Versions: 2.0.1 > Reporter: Yonik Seeley > Assigned To: Yonik Seeley > Attachments: IndexInput_finalizer.patch > > > finalizers are expensive, and we should avoid using them where possible. > It looks like this helped to tickle some kind of bug (looks like a JVM bug?) > http://www.nabble.com/15-minute-hang-in-IndexInput.clone%28%29-involving-finalizers-tf2826906.html#a7891015 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]