Skip to content

Improve the mmap() emulation on Windows

Johannes Schindelin git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3win32mmap: set errno appropriatelycompat/win32mmap.c+8 -20 replies
2/3mmap(win32): avoid copy-on-write when it is unnecessarycompat/win32mmap.c+3 -24 replies
3/3mmap(win32): avoid expensive fstat() callcompat/win32mmap.c+7 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Improve the mmap() emulation on Windows

Kevin David reported a problem last October where a simple git fetch would produce this error output:

fatal: mmap failed: No error
fatal: write error: Invalid argument

The reason was that several bits of our mmap() emulation left room for improvement. These patches fix it, and made it already into Git for Windows v2.6.2 and have been working without problems ever since.

Johannes Schindelin (3):
win32mmap: set errno appropriately mmap(win32): avoid copy-on-write when it is unnecessary mmap(win32): avoid expensive fstat() call

 compat/win32mmap.c | 31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)
Signature · 1 line
2.8.1.306.gff998f2