]> Cypherpunks repositories - gostls13.git/commit
cmd/gc: instrument logical && and ||.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 25 Mar 2013 21:12:47 +0000 (22:12 +0100)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 25 Mar 2013 21:12:47 +0000 (22:12 +0100)
commitc0b3c17184735e1f4352aea6a9ecf5779f098cd5
tree9ea7aead1e541e9dbd8761ab48dd6f8485149547
parent4cb921bbf1f5d7d161e45e362be1cce35b73fc8b
cmd/gc: instrument logical && and ||.

The right operand of a && and || is only executed conditionnally,
so the instrumentation must be more careful. In particular
it should not turn nodes assumed to be cheap after walk into
expensive ones.

Update #4228

R=dvyukov, golang-dev
CC=golang-dev
https://golang.org/cl/7986043
src/cmd/gc/racewalk.c
src/cmd/gc/subr.c
src/pkg/runtime/race/testdata/mop_test.go