]> Cypherpunks repositories - gostls13.git/commit
cmd/link: implement Msync for Windows using FlushViewOfFile
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 2 Oct 2019 09:25:24 +0000 (11:25 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 2 Oct 2019 09:45:12 +0000 (09:45 +0000)
commit274f4cef9329262dcfd4a715ab6c2ebc908d6209
tree9696273633af3fe9588181c413f7d5417ccf8a34
parent148ec3e3bc8083ccb9ac9b7050ce540d1e0f0539
cmd/link: implement Msync for Windows using FlushViewOfFile

CL 196846 implemented memory mapped output files but forgot to provide
an implementation for Msync. This rectifies that with a simple call to
FlushViewOfFile.

Change-Id: I5aebef9baf3a2a6ad54ceda096952a5d7d660bfe
Reviewed-on: https://go-review.googlesource.com/c/go/+/198418
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/outbuf_windows.go