From e7bf9959fd9ea649e1513cef16f91f81b136045f Mon Sep 17 00:00:00 2001 From: Michael Mitchell Date: Fri, 17 May 2024 08:20:50 -0400 Subject: [PATCH] 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 --- src/runtime/mpallocbits.go | 1 - 1 file changed, 1 deletion(-) 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 {