From 3d8940a9ee791089ad6417b35d9e70ed2bfc7258 Mon Sep 17 00:00:00 2001 From: Aditya Mukerjee Date: Thu, 19 Apr 2018 12:24:53 -0400 Subject: [PATCH] runtime: specify behavior of SetMutexProfileFraction for negative values Change-Id: Ie4da1a515d5405140d742bdcd55f54a73a7f71fe Reviewed-on: https://go-review.googlesource.com/108175 Reviewed-by: Ian Lance Taylor --- src/runtime/mprof.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mprof.go b/src/runtime/mprof.go index 259473c9ce..0455fe86ac 100644 --- a/src/runtime/mprof.go +++ b/src/runtime/mprof.go @@ -434,7 +434,7 @@ var mutexprofilerate uint64 // fraction sampled // reported. The previous rate is returned. // // To turn off profiling entirely, pass rate 0. -// To just read the current rate, pass rate -1. +// To just read the current rate, pass rate < 0. // (For n>1 the details of sampling may change.) func SetMutexProfileFraction(rate int) int { if rate < 0 { -- 2.50.0