do we need separate thread for FirstThread

Tom Tromey tromey@redhat.com
Thu Feb 8 16:59:00 GMT 2001


>>>>> "Per" == Per Bothner <per@bothner.com> writes:

Per> (2) the thread that causes gc to be invoked (by doing a new).
Per> Why is (2) prohibited?  Do you mean as a consequence of the
Per> boehm-gc implementation or is there some subtle point about
Per> finalization semantics I don't know about?

I don't think it is prohibited.  But I think it is more robust to run
finalizers in their own thread.  Otherwise you end up running
finalizers in a thread where random, arbitrary locks might be held.

Tom


More information about the Java mailing list