aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-07-31 09:32:09 -0700
committerKeith Randall <khr@golang.org>2014-07-31 09:32:09 -0700
commit1e0b37890559538efbde6e1fb013b8b676db7d17 (patch)
tree529f8ea13590e27081d2c961426898f8658ee719 /src/pkg/runtime
parentcecca43804e0bd795581b6ec6a376509ed5fea05 (diff)
downloadgo-1e0b37890559538efbde6e1fb013b8b676db7d17.tar.xz
runtime: use right mask to extract type kind
Cleanup from recent malloc changes. LGTM=dvyukov R=dvyukov CC=golang-codereviews https://golang.org/cl/120960043
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/race.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/runtime/race.go b/src/pkg/runtime/race.go
index bdb7193ffb..3707549a3f 100644
--- a/src/pkg/runtime/race.go
+++ b/src/pkg/runtime/race.go
@@ -34,7 +34,7 @@ func RaceSemrelease(s *uint32)
const raceenabled = true
func raceReadObjectPC(t *_type, addr unsafe.Pointer, callerpc, pc uintptr) {
- kind := t.kind &^ kindNoPointers
+ kind := t.kind & kindMask
if kind == kindArray || kind == kindStruct {
// for composite objects we have to read every address
// because a write might happen to any subobject.