[concurrency-interest] NullPointerExceptionin ThreadLocal$ThreadLocalMap.replaceStaleEntry
tackline at tackline.plus.com
Fri Jun 30 14:39:46 EDT 2006
Doug Lea wrote:
> 1. ThreadLocals were originally designed as a way to maintain
> very fast access (mainly by avoiding synchronization) to little
> bits of context needed mainly in infrastructure/middleware stuff.
Didn't the original version (prior to 1.3/1.2.2_13) use synchronisation,
with a pre-ThreadLocal map from Thread to value instead of a per-Thread
map from ThreadLocal to value?
More information about the Concurrency-interest