On 7/9/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:
: This patch, while not doing much harm, is not really "best practice" in
: Java and the existing RAMDirectory close() was correct.

Why is this not a best practice?  (or do you mean that in a "not
particularly good" sense instead of "bad" sense?)

Right... some people used to null out references with the idea that it
would help out GC.  With modern VMs, it's normally a net performance
loss.  If the object you are releasing contains other references, one
should not normally null those references.

It only makes sense to null references when the lifetime of the parent
is greater.

-Yonik
http://incubator.apache.org/solr Solr, the open-source Lucene search server

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to