[concurrency-interest] Problem with using an unbounded map of Mutex lock objects
mattocks at mac.com
Fri Jun 2 22:11:59 EDT 2006
On Sat, 3 Jun 2006 07:02:59 +1000 Greg Luck <gluck at gregluck.com> wrote:
> Once a Mutex object is placed in the Map it stays there forever. It is
> technically a slow memory leak unless the keyset is bounded so that
> at some time it stops growing.
Use a WeakHashMap?
More information about the Concurrency-interest