classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Memory leak in java.lang.Thread ?


From: Jeroen Frijters
Subject: RE: Memory leak in java.lang.Thread ?
Date: Sun, 12 Dec 2004 15:26:07 +0100

I wrote:
> I'm leaning towards "leaking" daemon thread groups in the case of
> unstarted threads that have been GCed.

I've modified my patch to use a PhantomReference to do the cleanup. I
still think we shouldn't bother to do the cleanup, but I will note that
using the PhantomReference probably isn't as expensive as I originally
thought, because it can be thrown away as soon as the thread is started.

Regards,
Jeroen

Attachment: Thread.patch.txt
Description: Thread.patch.txt


reply via email to

[Prev in Thread] Current Thread [Next in Thread]