]> source.dussan.org Git - jgit.git/commit
dfs: actually allow current DfsBlock to GC 99/101599/1
authorShawn Pearce <spearce@spearce.org>
Wed, 19 Jul 2017 20:56:06 +0000 (13:56 -0700)
committerShawn Pearce <spearce@spearce.org>
Wed, 19 Jul 2017 20:56:06 +0000 (13:56 -0700)
commitda0a7c1f3cb580065ab45577ced06f88ab0afb42
treefce57022f4f081556b938ec9e02283543ed41913
parent3a072c8a7a6b969d319c8ef47a3c40c7c00bd982
dfs: actually allow current DfsBlock to GC

Holding the current DfsBlock in a local variable 'b' may prevent the
Java GC from reclaiming it while loading the next block.  Remove the
local variable and rely only on the field.

Change-Id: Ibfc8394cac717b485fdc94d5c8479c3f8ca78ee4
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReader.java