]> Cypherpunks repositories - gostls13.git/commit
runtime: update and access scavengeGoal atomically
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 4 Oct 2021 19:52:48 +0000 (19:52 +0000)
committerMichael Knyszek <mknyszek@google.com>
Thu, 4 Nov 2021 20:01:11 +0000 (20:01 +0000)
commitfc5e8cd6c9de00f8d7da645343934c548e62223e
tree083c4a068fc0f971af4c6b31e3f8ea23b2a26c32
parent9b2dd1f7714b38f1bfe25676357b62c1bb4cad64
runtime: update and access scavengeGoal atomically

The first step toward acquiring the heap lock less frequently in the
scavenger.

Change-Id: Idc69fd8602be2c83268c155951230d60e20b42fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/353973
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
src/runtime/mgcscavenge.go
src/runtime/mheap.go