summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Martí <mvdan@mvdan.cc>2017-03-10 17:07:42 +0000
committerIan Lance Taylor <iant@golang.org>2017-03-10 20:46:58 +0000
commitda0d23e5cdb305681a55c5475ff2db3e9a254cd4 (patch)
tree1d8c34c7676dcfa7acfed8bbf501de81502a3016
parent7e036521d505708a3e0d0b3d9bbe1e4853111211 (diff)
downloadgo-git-da0d23e5cdb305681a55c5475ff2db3e9a254cd4.tar.gz
runtime: remove unused ratep parameter
Found by github.com/mvdan/unparam. Change-Id: Iabcdfec2ae42c735aa23210b7183080d750682ca Reviewed-on: https://go-review.googlesource.com/38030 Reviewed-by: Peter Weinberger <pjw@google.com> Run-TryBot: Peter Weinberger <pjw@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r--src/runtime/mprof.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/mprof.go b/src/runtime/mprof.go
index fc06d8dbe7..555a3ac2a6 100644
--- a/src/runtime/mprof.go
+++ b/src/runtime/mprof.go
@@ -298,7 +298,7 @@ func blockevent(cycles int64, skip int) {
cycles = 1
}
if blocksampled(cycles) {
- saveblockevent(cycles, skip+1, blockProfile, &blockprofilerate)
+ saveblockevent(cycles, skip+1, blockProfile)
}
}
@@ -310,7 +310,7 @@ func blocksampled(cycles int64) bool {
return true
}
-func saveblockevent(cycles int64, skip int, which bucketType, ratep *uint64) {
+func saveblockevent(cycles int64, skip int, which bucketType) {
gp := getg()
var nstk int
var stk [maxStack]uintptr
@@ -353,7 +353,7 @@ func mutexevent(cycles int64, skip int) {
// TODO(pjw): measure impact of always calling fastrand vs using something
// like malloc.go:nextSample()
if rate > 0 && int64(fastrand())%rate == 0 {
- saveblockevent(cycles, skip+1, mutexProfile, &mutexprofilerate)
+ saveblockevent(cycles, skip+1, mutexProfile)
}
}