diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2016-04-22 16:31:26 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-04-22 15:01:15 -0700 |
commit | 7ce7ee2d8228a97f023c7e34488ed83a557d83fb (patch) | |
tree | cd0abdb9d35986108bcf8fe442bc394b53bfe8d2 /url.c | |
parent | win32mmap: set errno appropriately (diff) | |
download | tgif-7ce7ee2d8228a97f023c7e34488ed83a557d83fb.tar.xz |
mmap(win32): avoid copy-on-write when it is unnecessary
Often we are mmap()ing read-only. In those cases, it is wasteful to map in
copy-on-write mode. Even worse: it can cause errors where we run out of
space in the page file.
So let's be extra careful to map files in read-only mode whenever
possible.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'url.c')
0 files changed, 0 insertions, 0 deletions