diff options
| author | Michael Anthony Knyszek <mknyszek@google.com> | 2021-10-21 21:26:50 +0000 |
|---|---|---|
| committer | Michael Knyszek <mknyszek@google.com> | 2021-11-05 22:57:08 +0000 |
| commit | 09e8de70c2ee36d99ba02389da0fe2e203879022 (patch) | |
| tree | efd5160f418f9ab44669556a7f85ecdf610ca2a8 /src/debug | |
| parent | 2f71c86370a2c3bf2827e8d9f9080d9bf92a5317 (diff) | |
| download | go-09e8de70c2ee36d99ba02389da0fe2e203879022.tar.xz | |
runtime: eliminate rendundant loads gcPercent
The previous change was an automated change that made gcPercent a
type-safe atomic variable. However, that introduced a lot of redundant
formal atomic loads of the variable. Remove them by only loading once in
each case, and reusing the value.
Change-Id: I49647135f423574f94506d456d1cc390150fad02
Reviewed-on: https://go-review.googlesource.com/c/go/+/357795
Trust: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/debug')
0 files changed, 0 insertions, 0 deletions
