lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley (JIRA)" <>
Subject [jira] Updated: (LUCENE-750) don't use finalizers for FSIndexInput clones
Date Fri, 15 Dec 2006 16:21:24 GMT
     [ ]

Yonik Seeley updated LUCENE-750:

    Attachment: IndexInput_finalizer.patch

 - 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:
>             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?)

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message