]> Cypherpunks repositories - gostls13.git/commit
cmd/link: call syscall.FlushFileBuffers on outbuf Unmap
authorThan McIntosh <thanm@google.com>
Tue, 17 May 2022 12:17:38 +0000 (08:17 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 31 May 2022 11:37:38 +0000 (11:37 +0000)
commitcfd202c701d3c1fda740a8c3c725fbb704054591
tree4b41888da0c7b1f8791a36374edbfe78d56a3447
parentdb19b42ca8771c25aa09e3747812f0229d44e75c
cmd/link: call syscall.FlushFileBuffers on outbuf Unmap

In the windows version of OutBuf.munmap, call syscall.FlushFileBuffers
after the call to syscall.FlushViewOfFile, on the theory that this
will help flush all associated meta-data for the file the linker is
writing.

Updates #44817.

Change-Id: Ibff7d05008a91eeed7634d2760153851e15e1c18
Reviewed-on: https://go-review.googlesource.com/c/go/+/406814
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Alex Brainman <alex.brainman@gmail.com>
src/cmd/link/internal/ld/outbuf_windows.go