[concurrency-interest] TheadLocal variable usage in ReentrantReadWriteLock

Rob Griffin rob.griffin at quest.com
Thu Dec 13 22:00:53 EST 2007


Hello,

I'm seeing a significant number (dozens) of ThreadLocal variables containing values of type ReentrantReadWriteLock$Sync$HoldCounter in a single thread. From the code it would appear that each new ReentrantReadWriteLock instance creates a new ThreadLocal variable named readHolds which is never cleared. Is my interpretation correct?

This is in Java 1.6.0_03

Regards,

Rob Griffin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/attachments/20071213/d136421c/attachment.html 


More information about the Concurrency-interest mailing list