]> source.dussan.org Git - jgit.git/commit
Keep track of a static collection of all PackWriter instances 95/4595/2
authorDave Borowitz <dborowitz@google.com>
Thu, 10 Nov 2011 20:58:13 +0000 (12:58 -0800)
committerDave Borowitz <dborowitz@google.com>
Mon, 14 Nov 2011 18:27:45 +0000 (10:27 -0800)
commit2b584b92165f8dc711a2a4dfb00d49af8fe84a3a
treebe237e1712e50e81a93f281545a084e2f704d5a3
parentf26b79d04453b64ab9eead7130b099c7c90fd9ab
Keep track of a static collection of all PackWriter instances

Stored in a weak concurrent hash map, which we clean up while iterating.
Usually the weak reference behavior should not be necessary because
PackWriters should be released with release(), but we still want to
avoid leaks when dealing with broken client code.

Change-Id: I337abb952ac6524f7f920fedf04065edf84d01d2
org.eclipse.jgit/src/org/eclipse/jgit/storage/pack/PackWriter.java