diff options
| author | Austin Clements <austin@google.com> | 2021-04-06 19:25:28 -0400 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2021-04-12 19:22:52 +0000 |
| commit | 1b736b3c19375f6ebd0d834c02316fb13700be27 (patch) | |
| tree | 82814077b9ad2d5476b28920febd14a45b6ac56d /src/internal/execabs | |
| parent | a25a77aed2d76b0aebff8892477f27283398a932 (diff) | |
| download | go-1b736b3c19375f6ebd0d834c02316fb13700be27.tar.xz | |
runtime: consolidate "is sweep done" conditions
The runtime currently has two different notions of sweep completion:
1. All spans are either swept or have begun sweeping.
2. The sweeper has *finished* sweeping all spans.
Having both is confusing (it doesn't help that the documentation is
often unclear or wrong). Condition 2 is stronger and the theoretical
slight optimization that condition 1 could impact is never actually
useful. Hence, this CL consolidates both conditions down to condition 2.
Updates #45315.
Change-Id: I55c84d767d74eb31a004a5619eaba2e351162332
Reviewed-on: https://go-review.googlesource.com/c/go/+/307916
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Diffstat (limited to 'src/internal/execabs')
0 files changed, 0 insertions, 0 deletions
