Stop leaking data in PatchLineCache keys
As in other persisted caches, references to excess data may stick around longer than we need them. Particularly in the case of the intraline diff cache, this can be a significant amount of data. Avoid this by using non-LoadingCaches. Because these loader implementations are somewhat complex, we need additional factories and args classes. Change-Id: Ic5a0543f0b70dbeee7dac47bbbd6f4a4fce0815c
This commit is contained in:

committed by
Shawn Pearce

parent
9efcff3124
commit
fdbb76233c
@@ -55,7 +55,7 @@ public class FileInfoJson {
|
||||
: ObjectId.fromString(base.getRevision().get());
|
||||
ObjectId b = ObjectId.fromString(revision.get());
|
||||
PatchList list = patchListCache.get(
|
||||
new PatchListKey(change.getProject(), a, b, Whitespace.IGNORE_NONE));
|
||||
new PatchListKey(a, b, Whitespace.IGNORE_NONE), change.getProject());
|
||||
|
||||
Map<String, FileInfo> files = Maps.newTreeMap();
|
||||
for (PatchListEntry e : list.getPatches()) {
|
||||
|
Reference in New Issue
Block a user