mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime: remove go119MemoryLimitSupport flag
Change-Id: I207480d991c6242a1610795605c5ec6a3b3c59de Reviewed-on: https://go-review.googlesource.com/c/go/+/463225 Reviewed-by: Keith Randall <khr@google.com> Run-TryBot: Keith Randall <khr@golang.org> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
469afbcc46
commit
79edd1d19d
5 changed files with 5 additions and 12 deletions
|
|
@ -1270,7 +1270,7 @@ HaveSpan:
|
|||
// pages not to get touched until we return. Simultaneously, it's important
|
||||
// to do this before calling sysUsed because that may commit address space.
|
||||
bytesToScavenge := uintptr(0)
|
||||
if limit := gcController.memoryLimit.Load(); go119MemoryLimitSupport && !gcCPULimiter.limiting() {
|
||||
if limit := gcController.memoryLimit.Load(); !gcCPULimiter.limiting() {
|
||||
// Assist with scavenging to maintain the memory limit by the amount
|
||||
// that we expect to page in.
|
||||
inuse := gcController.mappedReady.Load()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue