From: Terry Parker Date: Mon, 16 Jul 2018 20:58:30 +0000 (-0700) Subject: GC: Trim more EWAHCompressedBitmaps to free unused memory X-Git-Tag: v5.1.0.201808281540-m3~56 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F42%2F126142%2F2;p=jgit.git GC: Trim more EWAHCompressedBitmaps to free unused memory 04b9f4436 fixed places where compressed bitmaps were holding on to their full buffers, but missed this StoredBitmap.getBitmap() case where a bitmap is resonstituted from an xor chain. Change-Id: I7cf75d9e49c18a1a8a880a4df7e821502edc68a4 Signed-off-by: Terry Parker --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java index 407061fa16..3884180e19 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java @@ -104,6 +104,7 @@ abstract class BasePackBitmapIndex extends PackBitmapIndex { r = xb.xorBitmap.bitmapContainer; if (r instanceof EWAHCompressedBitmap) { out = out.xor((EWAHCompressedBitmap) r); + out.trim(); bitmapContainer = out; return out; }