aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.java7.test
diff options
context:
space:
mode:
authorDave Borowitz <dborowitz@google.com>2015-03-18 12:51:40 -0700
committerDave Borowitz <dborowitz@google.com>2015-03-18 13:38:58 -0700
commite3e9e1f003b09a35048e0c30f8a77c66dcfdda32 (patch)
treef33d531498383fedd60313ba459556584940c366 /org.eclipse.jgit.java7.test
parentedf4368b0c29e25bb74ec0e8f12070582a580eea (diff)
downloadjgit-e3e9e1f003b09a35048e0c30f8a77c66dcfdda32.tar.gz
jgit-e3e9e1f003b09a35048e0c30f8a77c66dcfdda32.zip
TemporaryBuffer: Clear block pointer list instead of reallocating
The block pointer list may have been relatively large, so no need to make more garbage. Instead, just clear the list and null out all the elements. Another possible motivation: a caller may have provided an inaccurate estimated size, so the list might have been resized several times. If the list is reused later for a similarly underestimated workload, this fix will prevent additional resizing on subsequent usages. Change-Id: I511675035dcff1117381a46c294cc11aded10893
Diffstat (limited to 'org.eclipse.jgit.java7.test')
0 files changed, 0 insertions, 0 deletions