Andrew John Hughes wrote: > Daniel's copyright assignment is finally through, so > I'm committing this patch which optimises the use of > ThreadLocals by replacing the use of the generic java.util.WeakHashMap > with a ThreadLocal-specific implementation.
It's slightly weird to be doing this in pure Java: all POSIX- compatible systems have thread-local variables, and the glibc implementation is very fast. Still, I'm sure this patch is an improvement. Andrew.