Skip to content

Commit

Permalink
runtime: remove unused code in (*pallocBits).findLargeN
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MikeMitchellWebDev authored and gopherbot committed May 18, 2024
1 parent 1667dbd commit e7bf995
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/runtime/mpallocbits.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e7bf995

Please sign in to comment.