]> Cypherpunks repositories - gostls13.git/commit
runtime: fix data/bss shadow memory mapping for race detector
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 3 Apr 2013 22:11:34 +0000 (09:11 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 3 Apr 2013 22:11:34 +0000 (09:11 +1100)
commit12b7db3d578f9764416ae987a4fa2e90125f379c
tree24a0e5d12723e1ce9e59728586850623a59e600b
parente798cd857c355650304f55dea35c3d2220bc42c1
runtime: fix data/bss shadow memory mapping for race detector
Fixes #5175.
Race detector runtime expects values passed to MapShadow() to be page-aligned,
because they are used in mmap() call. If they are not aligned mmap() trims
either beginning or end of the mapping.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/8325043
src/pkg/runtime/race.c