]> Cypherpunks repositories - gostls13.git/commit
internal/fuzz,cmd/compile: don't add race instrumentation to counters
authorRoland Shoemaker <roland@golang.org>
Thu, 16 Sep 2021 18:33:17 +0000 (11:33 -0700)
committerRoland Shoemaker <roland@golang.org>
Wed, 22 Sep 2021 18:44:36 +0000 (18:44 +0000)
commit7a03ca65b303474c2ea610178105304eae1180df
tree7193ac96323e91695e8c7e843a4687a4a0e626f1
parentccfc41eee01772576f83784ae44578e955e4ae6f
internal/fuzz,cmd/compile: don't add race instrumentation to counters

Don't add race detector instrumentation to the fuzzing counters,
allowing usage of -race without immediately triggering the
detector. Also fixes a minor race in contextReader.Read.

Fixes #48307

Change-Id: Idb2cfeaa4283f8a74473b4bac6cd68eed577e943
Reviewed-on: https://go-review.googlesource.com/c/go/+/351453
Trust: Roland Shoemaker <roland@golang.org>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/cmd/compile/internal/ssa/writebarrier.go
src/cmd/compile/internal/walk/order.go
src/internal/fuzz/worker.go