]> Cypherpunks repositories - gostls13.git/commit
runtime: avoid write barrier in cgo mmap code
authorIan Lance Taylor <iant@golang.org>
Fri, 29 Jan 2016 23:43:24 +0000 (15:43 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 1 Feb 2016 20:38:07 +0000 (20:38 +0000)
commitb3c05f08a97ac89064d3edbf4efb7bea671c2c18
tree2c6ef1660928adb3d99ad4734322f6536ff7af18
parentd37d76af43f590935b13f2d33b07ef51c2976354
runtime: avoid write barrier in cgo mmap code

Tested by hand with a runtime/cgo modified to return an mmap failure
after 10 calls.

This is an interim patch.  For 1.7 we should fix mmap properly to avoid
using the same value as both a pointer and an errno value.

Fixes #14149.

Change-Id: I8f2bbd47d711e283001ba73296f1c34a26c59241
Reviewed-on: https://go-review.googlesource.com/19084
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/cgo_mmap.go