summaryrefslogtreecommitdiff
path: root/builtin-ls-tree.c
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2006-12-24 05:47:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-29 19:36:45 (GMT)
commit97bfeb34df1aa8a1cf232278624a5a5c924ee380 (patch)
treec1591e0eac89204f6db3f2a8a8ec3b86b6c40be1 /builtin-ls-tree.c
parent8c82534d89cef9260c12768e74eb4ef6c54f7217 (diff)
downloadgit-97bfeb34df1aa8a1cf232278624a5a5c924ee380.zip
git-97bfeb34df1aa8a1cf232278624a5a5c924ee380.tar.gz
git-97bfeb34df1aa8a1cf232278624a5a5c924ee380.tar.bz2
Release pack windows before reporting out of memory.
If we are about to fail because this process has run out of memory we should first try to automatically control our appetite for address space by releasing enough least-recently-used pack windows to gain back enough memory such that we might actually be able to meet the current allocation request. This should help users who have fairly large repositories but are working on systems with relatively small virtual address space. Many times we see reports on the mailing list of these users running out of memory during various Git operations. Dynamically decreasing the amount of pack memory used when the demand for heap memory is increasing is an intelligent solution to this problem. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-ls-tree.c')
0 files changed, 0 insertions, 0 deletions