codahale/metrics — pull request #267 by mkwhitacre (2012-07-19 02:31:07+00:00)
Title: Eliminate use of ThreadLocal in Histogram

Sorry for the duplicate issues but this pull request is to handle the other issue I logged:
https://github.com/codahale/metrics/issues/248

Using the internal map to cache the stored values eliminates the use of ThreadLocal. Removing ThreadLocal solves the problem of explicitly having to remove the data from each Thread instance. To do that would be difficult as the ThreadLocal.remove() call would have to be made from inside each thread instance.