]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix buckHashSize duplication
authorDmitry Vyukov <dvyukov@google.com>
Sat, 12 Dec 2020 15:46:01 +0000 (16:46 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Sun, 22 Aug 2021 13:11:50 +0000 (13:11 +0000)
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>

src/runtime/mprof.go

index 0ba415ba5acbe9c74808c3241cc3a6c4ee51c2ab..0e6043cf2a37492c834597f5a3363695bb4c8bc2 100644 (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 {