From 96d816c5740f7576ed0f6346f70958ce9ef1e3b4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 12 Dec 2020 16:46:01 +0100 Subject: [PATCH] runtime: fix buckHashSize duplication We have a constant for 179999, don't duplicate it. Change-Id: Iefb9c4746f6dda2e08b42e3c978963198469ee8c Reviewed-on: https://go-review.googlesource.com/c/go/+/277375 Reviewed-by: Keith Randall Run-TryBot: Keith Randall Run-TryBot: Michael Pratt TryBot-Result: Go Bot Trust: Michael Pratt --- 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 0ba415ba5a..0e6043cf2a 100644 --- a/src/runtime/mprof.go +++ b/src/runtime/mprof.go @@ -142,7 +142,7 @@ var ( mbuckets *bucket // memory profile buckets bbuckets *bucket // blocking profile buckets xbuckets *bucket // mutex profile buckets - buckhash *[179999]*bucket + buckhash *[buckHashSize]*bucket bucketmem uintptr mProf struct { -- 2.50.0