diff options
| author | Dave Cheney <dave@cheney.net> | 2015-04-08 01:24:17 +1000 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2015-04-07 15:44:34 +0000 |
| commit | d6b40698528c94f3d0d3e263d5713994cebfb3a6 (patch) | |
| tree | 024381dbc9d83e400351c40c4b2e7738e783cc3f /src | |
| parent | 92c826b1b2473e743964d3478b73a9c39a579abf (diff) | |
| download | go-d6b40698528c94f3d0d3e263d5713994cebfb3a6.tar.xz | |
cmd/internal/gc: fix race build
Add special case for OGETG which should never be instrumented.
Change-Id: I7d082abb8608537f82b03362b687baf2a1d809dc
Reviewed-on: https://go-review.googlesource.com/8551
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmd/internal/gc/racewalk.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/internal/gc/racewalk.go b/src/cmd/internal/gc/racewalk.go index e054f47a17..7ae1c55192 100644 --- a/src/cmd/internal/gc/racewalk.go +++ b/src/cmd/internal/gc/racewalk.go @@ -410,6 +410,9 @@ func racewalknode(np **Node, init **NodeList, wr int, skip int) { OLABEL: goto ret + case OGETG: + Yyerror("racewalk: OGETG can happen only in runtime which we don't instrument") + // does not require instrumentation case OPRINT, // don't bother instrumenting it OPRINTN, // don't bother instrumenting it |
