]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unused code in (*pallocBits).findLargeN
authorMichael Mitchell <mikemitchellwebdev@gmail.com>
Fri, 17 May 2024 12:20:50 +0000 (08:20 -0400)
committerGopher Robot <gobot@golang.org>
Sat, 18 May 2024 15:13:43 +0000 (15:13 +0000)
Change-Id: I9611edb9663a9c32bb23d26b9b22b79a54a97498
Reviewed-on: https://go-review.googlesource.com/c/go/+/586196
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Auto-Submit: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mpallocbits.go

index 9f447557c6b9eb644ff3a5d30d7f40c1babb8e48..d8a9d25789d69a9d67e1ce7d88b41d2b676f8c08 100644 (file)
@@ -324,7 +324,6 @@ func (b *pallocBits) findLargeN(npages uintptr, searchIdx uint) (uint, uint) {
                }
                s := uint(sys.TrailingZeros64(x))
                if s+size >= uint(npages) {
-                       size += s
                        return start, newSearchIdx
                }
                if s < 64 {