]> Cypherpunks repositories - gostls13.git/commit
runtime: use searchIdx in scavengeOne
authorMichael Anthony Knyszek <mknyszek@google.com>
Wed, 7 Sep 2022 20:31:00 +0000 (20:31 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 8 Sep 2022 16:06:03 +0000 (16:06 +0000)
commit2caaad942e15c148bfce33e06baa03d3a1557fcd
treef0f8ab55d03077e628b44e307bc8d035f82fa004
parent5a379654952f8103d801cbccb5112c3e9976b104
runtime: use searchIdx in scavengeOne

This is an optimization that prevents N^2 behavior within a chunk, but
was accidentally skipped. There should be no functional change as a
result of this CL.

Fixes #54892.

Change-Id: I861967a2268699fdc3464bd41bc56618b5628e6b
Reviewed-on: https://go-review.googlesource.com/c/go/+/429255
Auto-Submit: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
src/runtime/mgcscavenge.go