From e4774f45c4190ee0c5ec4f5f575d9d4df1df4959 Mon Sep 17 00:00:00 2001 From: Terry Parker Date: Mon, 16 Jul 2018 13:58:30 -0700 Subject: [PATCH] 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 --- .../eclipse/jgit/internal/storage/file/BasePackBitmapIndex.java | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5