]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/gc: fix race build
authorDave Cheney <dave@cheney.net>
Tue, 7 Apr 2015 15:24:17 +0000 (01:24 +1000)
committerDave Cheney <dave@cheney.net>
Tue, 7 Apr 2015 15:44:34 +0000 (15:44 +0000)
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>
src/cmd/internal/gc/racewalk.go

index e054f47a17f9b4e8fd565200ede6f09e30b5585f..7ae1c551920da23cdefb2db4a5e899244eb39afd 100644 (file)
@@ -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