From: Dmitry Vyukov Date: Sat, 12 Dec 2020 15:46:01 +0000 (+0100) Subject: runtime: fix buckHashSize duplication X-Git-Tag: go1.18beta1~1682 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=96d816c5740f7576ed0f6346f70958ce9ef1e3b4;p=gostls13.git 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 --- 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 {