diff options
author | Cherry Zhang <cherryyz@google.com> | 2020-11-22 11:43:29 -0500 |
---|---|---|
committer | Cherry Zhang <cherryyz@google.com> | 2020-12-01 23:39:15 +0000 |
commit | cf7aa585ac8b3a2db8e0792d6d7c14259568823e (patch) | |
tree | 93fc7ba24b03a8734198eccf506433a3d02f083f /test | |
parent | 8cd35e00bd413e68e6b9ae6403aa4209fc89b90f (diff) | |
download | go-cf7aa585ac8b3a2db8e0792d6d7c14259568823e.tar.gz go-cf7aa585ac8b3a2db8e0792d6d7c14259568823e.zip |
cmd/link: invalidate kernel cache on darwin
Apparently, the darwin kernel may cache the code signature at
mmap. When we mmap the output buffer, it doesn't have a code
signature (as we haven't generated one). Invalidate the kernel
cache after writing the file.
See https://github.com/golang/go/issues/42684#issuecomment-731704900
for more information.
Updates #38485.
Fixes #42684.
Change-Id: Iac2ef756ca1454c856944423e5040b8e17a6b420
Reviewed-on: https://go-review.googlesource.com/c/go/+/272258
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions