mirror of
https://github.com/golang/go.git
synced 2025-05-29 19:35:42 +00:00
runtime: remove unused g parameter
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>
This commit is contained in:
parent
d60166d5ee
commit
77b09b8b8d
@ -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)
|
||||
|
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user