From: Keith Randall Date: Thu, 31 Jul 2014 16:32:09 +0000 (-0700) Subject: runtime: use right mask to extract type kind X-Git-Tag: go1.4beta1~976 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1e0b37890559538efbde6e1fb013b8b676db7d17;p=gostls13.git 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 --- 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.