Re: [Sablevm-developer] Threads free list
Brought to you by:
egagnon
From: Archie C. <ar...@de...> - 2003-01-14 22:00:04
|
Archie Cobbs wrote: > It appears that the free list for threads is not actually used. > I.e., when a thread exits, it is never put on the VM threads free list. > The file thread.c contains this comment: > > /* leak it for now... */ > > Is there some bug or problem exposed when threads are put back on > the free list? It seems like it would be simple enough to implement > this, and I'm wondering if there's a more subtle problem that I'm > missing. I just realized that you can't free the _svmt_JNIEnv object until the corresponding java.lang.Thread object is GC'd. So it seems that java.lang.Thread needs a finalize() method that does this... ? -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com |