jgit/org.eclipse.jgit.http.server
Shawn O. Pearce 515deaf7e5 Ensure RevWalk is released when done
Update a number of calling sites of RevWalk to ensure the walker's
internal ObjectReader is released after the walk is no longer used.
Because the ObjectReader is likely to hold onto a native resource
like an Inflater, we don't want to leak them outside of their
useful scope.

Where possible we also try to share ObjectReaders across several
walk pools, or between a walker and a PackWriter.  This permits
the ObjectReader to actually do some caching if it felt inclined
to do so.

Not everything was updated, we'll probably need to come back and
update even more call sites, but these are some of the biggest
offenders.  Test cases in particular aren't updated.  My plan is to
move most storage-agnostic tests onto some purely in-memory storage
solution that doesn't do compression.

Change-Id: I04087ec79faeea208b19848939898ad7172b6672
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
2010-06-29 15:12:53 -07:00
..
.settings Simple dumb HTTP server for Git 2010-01-12 12:01:24 -08:00
META-INF Move FileRepository to storage.file.FileRepository 2010-06-26 18:50:34 -07:00
resources/org/eclipse/jgit/http/server Externalize strings from JGit 2010-05-19 14:37:16 -07:00
src/org/eclipse/jgit/http/server Ensure RevWalk is released when done 2010-06-29 15:12:53 -07:00
.classpath Externalize strings from JGit 2010-05-19 14:37:16 -07:00
.fbprefs Simple dumb HTTP server for Git 2010-01-12 12:01:24 -08:00
.gitignore Simple dumb HTTP server for Git 2010-01-12 12:01:24 -08:00
.project Simple dumb HTTP server for Git 2010-01-12 12:01:24 -08:00
build.properties Simple dumb HTTP server for Git 2010-01-12 12:01:24 -08:00
plugin.properties Correct bundle, provider names to be consistent 2010-01-23 11:42:15 -08:00
pom.xml Start 0.9 development 2010-06-14 08:11:27 -07:00