summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit/src/org/eclipse
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2010-08-20 09:25:47 -0700
committerShawn O. Pearce <spearce@spearce.org>2010-08-20 17:38:52 -0700
commit746ebda381b10a3dffa0b2fd83c4e5dd8585844f (patch)
tree808721809133c786fb7312dfd0c753b286f3552b /org.eclipse.jgit.junit/src/org/eclipse
parent9ac29d0e912b999526184860d56611a9ad3f692d (diff)
downloadjgit-746ebda381b10a3dffa0b2fd83c4e5dd8585844f.tar.gz
jgit-746ebda381b10a3dffa0b2fd83c4e5dd8585844f.zip
Try really hard to load a commit or tag
When we need the canonical form of a commit or a tag in order to parse it into our RevCommit or RevTag fields, we really need it as a single contiguous byte array. However the ObjectDatabase may choose to give us a large loader. In general commits or tags are always under the several MiB limit, so even if the loader calls it "large" we should still be able to afford the JVM heap memory required to get a single byte array. Coerce even large loaders into a single byte array anyway. Change-Id: I04efbaa7b31c5f4b0a68fc074821930b1132cfcf Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'org.eclipse.jgit.junit/src/org/eclipse')
0 files changed, 0 insertions, 0 deletions