[concurrency-interest] NullPointerExceptionin ThreadLocal$ThreadLocalMap.replaceStaleEntry

Doug Lea dl at cs.oswego.edu
Fri Jun 30 14:43:55 EDT 2006

Thomas Hawtin wrote:
> 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?

Until the API originator reimplemented it to meet original intent :-)
All thread-local constructions in all languages and systems I know use
the vastly more efficient variable-as-key approach.


More information about the Concurrency-interest mailing list