author | Jonathan Nieder <jrnieder@gmail.com> | |
Sat, 6 Nov 2010 11:44:11 +0000 (06:44 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Nov 2010 19:03:13 +0000 (11:03 -0800) | ||
commit | 58ecbd5edeb2357c313db75bc49d45981a2061b7 | |
tree | 2b1c2369102ae51b351bdbb2a0a3ad837bb4bdaf | tree | snapshot |
parent | 6f10c4103dc7506623f89520ad03517b40788259 | commit | diff |
wrapper: move xmmap() to sha1_file.c
wrapper.o depends on sha1_file.o for a number of reasons. One is
release_pack_memory().
xmmap function calls mmap, discarding unused pack windows when
necessary to relieve memory pressure. Simple git programs using
wrapper.o as a friendly libc do not need this functionality.
So move xmmap to sha1_file.o, where release_pack_memory() is.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wrapper.o depends on sha1_file.o for a number of reasons. One is
release_pack_memory().
xmmap function calls mmap, discarding unused pack windows when
necessary to relieve memory pressure. Simple git programs using
wrapper.o as a friendly libc do not need this functionality.
So move xmmap to sha1_file.o, where release_pack_memory() is.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c | diff | blob | history | |
wrapper.c | diff | blob | history |