1
0
mirror of https://github.com/golang/go synced 2024-11-23 03:30:02 -07:00

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 <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Michael Pratt <mpratt@google.com>
This commit is contained in:
Dmitry Vyukov 2020-12-12 16:46:01 +01:00 committed by Tobias Klauser
parent 6e50991d2a
commit 96d816c574

View File

@ -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 {