]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused g parameter
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 7 Mar 2017 16:10:59 +0000 (16:10 +0000)
committerAustin Clements <austin@google.com>
Thu, 16 Mar 2017 14:03:45 +0000 (14:03 +0000)
Found by github.com/mvdan/unparam.

Change-Id: I20145440ff1bcd27fcf15a740354c52f313e536c
Reviewed-on: https://go-review.googlesource.com/37894
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/proc.go
src/runtime/trace.go

index 45d98de151762e7bb7a788c49274e608b948ae40..159a9bd4bc3be08a083d5d1b6c9adf4659366c93 100644 (file)
@@ -2252,7 +2252,7 @@ func park_m(gp *g) {
        _g_ := getg()
 
        if trace.enabled {
-               traceGoPark(_g_.m.waittraceev, _g_.m.waittraceskip, gp)
+               traceGoPark(_g_.m.waittraceev, _g_.m.waittraceskip)
        }
 
        casgstatus(gp, _Grunning, _Gwaiting)
index c29c162333b1d875a8dbc62e85a6d48276dd3c2d..4f87d4ce2a396ac7bf83be8be40d499045a77832 100644 (file)
@@ -982,7 +982,7 @@ func traceGoPreempt() {
        traceEvent(traceEvGoPreempt, 1)
 }
 
-func traceGoPark(traceEv byte, skip int, gp *g) {
+func traceGoPark(traceEv byte, skip int) {
        if traceEv&traceFutileWakeup != 0 {
                traceEvent(traceEvFutileWakeup, -1)
        }