Allow core.packedGitLimit to exceed "2 g"
commitb2c1841f0d3619c8cc9f66d3bbb61d83242589a3
authorShawn O. Pearce <spearce@spearce.org>
Fri, 12 Jun 2009 23:23:06 +0000 (12 16:23 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 14 Jun 2009 20:55:08 +0000 (14 22:55 +0200)
tree113707d2ed73ffa8914143930214740bd3c8823e
parent12aeec83c82641cdd4525721f5c065a7b0101dce
Allow core.packedGitLimit to exceed "2 g"

A 64 bit JVM might actually be able to dedicate more than 2 GiB of
memory to the window cache, and on a busy server, this may be an
ideal configuration since JGit can't always reliably use mmap.  By
treating the limit as a long we increase our range to 2^63, which
is far beyond what any JVM heap would be able to actually support.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCache.java
org.spearce.jgit/src/org/spearce/jgit/lib/WindowCacheConfig.java