From: Michael Mitchell Date: Fri, 17 May 2024 12:20:50 +0000 (-0400) Subject: runtime: remove unused code in (*pallocBits).findLargeN X-Git-Tag: go1.23rc1~282 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e7bf9959fd9ea649e1513cef16f91f81b136045f;p=gostls13.git runtime: remove unused code in (*pallocBits).findLargeN Change-Id: I9611edb9663a9c32bb23d26b9b22b79a54a97498 Reviewed-on: https://go-review.googlesource.com/c/go/+/586196 LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Knyszek Auto-Submit: Ian Lance Taylor Reviewed-by: Michael Pratt --- diff --git a/src/runtime/mpallocbits.go b/src/runtime/mpallocbits.go index 9f447557c6..d8a9d25789 100644 --- a/src/runtime/mpallocbits.go +++ b/src/runtime/mpallocbits.go @@ -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 {