This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: do we need separate thread for FirstThread


>>>>> "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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]