]> source.dussan.org Git - jgit.git/commit
Allow TemporaryBuffer.Heap to allocate smaller than 8 KiB 00/1100/1
authorShawn O. Pearce <spearce@spearce.org>
Fri, 9 Jul 2010 17:10:12 +0000 (10:10 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 9 Jul 2010 17:37:47 +0000 (10:37 -0700)
commit97311cd3e016679178cb37b32f1d913af57e6320
tree28b040a0202ae1c06cbb321fc7beb3d55af001a7
parent711bd3e3d035b22e41bda32a9463cef3e2dca7a7
Allow TemporaryBuffer.Heap to allocate smaller than 8 KiB

If the heap limit was set to something smaller than 8 KiB, we were
still allocating the full 8 KiB block size, and accepting up to
the amount we allocated by.  Instead actually put a hard cap on
the limit.

Change-Id: Id1da26fde2102e76510b1da4ede8493928a981cc
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackRefFilterTest.java
org.eclipse.jgit/src/org/eclipse/jgit/util/TemporaryBuffer.java