[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cp-patches] RFC: Different ThreadLocal implementation
From: |
Jeroen Frijters |
Subject: |
RE: [cp-patches] RFC: Different ThreadLocal implementation |
Date: |
Thu, 17 Feb 2005 13:57:39 +0100 |
I wrote:
> I'd like to propose a different way to implement ThreadLocal.
> The patch is attached.
I realised that my new version would "leak" the ThreadLocal objects, so
I've attached a new version of the patch that uses a WeakHashMap in
Thread to store the locals.
I liked the previous patch better, but experimentation shows that the
JDK also collects thread locals that aren't referenced anymore.
Regards,
Jeroen
ThreadLocal.patch.txt
Description: ThreadLocal.patch.txt