Commit da0d23e5 authored by Daniel Martí's avatar Daniel Martí Committed by Ian Lance Taylor

runtime: remove unused ratep parameter

Found by github.com/mvdan/unparam.

Change-Id: Iabcdfec2ae42c735aa23210b7183080d750682ca
Reviewed-on: https://go-review.googlesource.com/38030Reviewed-by: default avatarPeter Weinberger <pjw@google.com>
Run-TryBot: Peter Weinberger <pjw@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 7e036521
...@@ -298,7 +298,7 @@ func blockevent(cycles int64, skip int) { ...@@ -298,7 +298,7 @@ func blockevent(cycles int64, skip int) {
cycles = 1 cycles = 1
} }
if blocksampled(cycles) { if blocksampled(cycles) {
saveblockevent(cycles, skip+1, blockProfile, &blockprofilerate) saveblockevent(cycles, skip+1, blockProfile)
} }
} }
...@@ -310,7 +310,7 @@ func blocksampled(cycles int64) bool { ...@@ -310,7 +310,7 @@ func blocksampled(cycles int64) bool {
return true return true
} }
func saveblockevent(cycles int64, skip int, which bucketType, ratep *uint64) { func saveblockevent(cycles int64, skip int, which bucketType) {
gp := getg() gp := getg()
var nstk int var nstk int
var stk [maxStack]uintptr var stk [maxStack]uintptr
...@@ -353,7 +353,7 @@ func mutexevent(cycles int64, skip int) { ...@@ -353,7 +353,7 @@ func mutexevent(cycles int64, skip int) {
// TODO(pjw): measure impact of always calling fastrand vs using something // TODO(pjw): measure impact of always calling fastrand vs using something
// like malloc.go:nextSample() // like malloc.go:nextSample()
if rate > 0 && int64(fastrand())%rate == 0 { if rate > 0 && int64(fastrand())%rate == 0 {
saveblockevent(cycles, skip+1, mutexProfile, &mutexprofilerate) saveblockevent(cycles, skip+1, mutexProfile)
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment