Displaying 1 result from an estimated 1 matches for "collectior".
Did you mean:
collection
2006 Dec 23
1
Re: Xapian jni
...ch thread will
> invoke the finalize method for any given object. It is guaranteed,
> however, that the thread that invokes finalize will not be holding any
> user-visible synchronization locks when finalize is invoked."
>
> This seems to imply that synchronizing inside garbage collectior is
> not recommended.
I think you're reading too much into the quoted text. To me it just
says that the thread won't be holding any user-visible locks already,
not that you can't take out locks. In fact, it seems to me it must
be telling you this precisely so you know that it is s...