diff options
| author | Filippo Valsorda <filippo@golang.org> | 2020-06-06 20:59:12 -0400 |
|---|---|---|
| committer | Filippo Valsorda <filippo@golang.org> | 2020-06-08 01:03:14 +0000 |
| commit | 608cdcaede1e7133dc994b5e8894272c2dce744b (patch) | |
| tree | 1c5f829049847f882cc4be0001db98e750f3ee0d /src/runtime | |
| parent | 666448abebed5c165b90814a0f4146a8ae084fb0 (diff) | |
| download | go-608cdcaede1e7133dc994b5e8894272c2dce744b.tar.xz | |
all: replace usages of whitelist/blacklist and master/slave
There's been plenty of discussion on the usage of these terms in tech.
I'm not trying to have yet another debate. It's clear that there are
people who are hurt by them and who are made to feel unwelcome by their
use due not to technical reasons but to their historical and social
context. That's simply enough reason to replace them.
Anyway, allowlist and blocklist are more self-explanatory than whitelist
and blacklist, so this change has negative cost.
Didn't change vendored, bundled, and minified files. Nearly all changes
are tests or comments, with a couple renames in cmd/link and cmd/oldlink
which are extremely safe. This should be fine to land during the freeze
without even asking for an exception.
Change-Id: I8fc54a3c8f9cc1973b710bbb9558a9e45810b896
Reviewed-on: https://go-review.googlesource.com/c/go/+/236857
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Khosrow Moossavi <khos2ow@gmail.com>
Reviewed-by: Leigh McCulloch <leighmcc@gmail.com>
Reviewed-by: Urban Ishimwe <urbainishimwe@gmail.com>
Diffstat (limited to 'src/runtime')
| -rw-r--r-- | src/runtime/cgo_sigaction.go | 2 | ||||
| -rw-r--r-- | src/runtime/debugcall.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/cgo_sigaction.go b/src/runtime/cgo_sigaction.go index bc5e0786d9..967b8b9a0d 100644 --- a/src/runtime/cgo_sigaction.go +++ b/src/runtime/cgo_sigaction.go @@ -18,7 +18,7 @@ var _cgo_sigaction unsafe.Pointer //go:nosplit //go:nowritebarrierrec func sigaction(sig uint32, new, old *sigactiont) { - // The runtime package is explicitly blacklisted from sanitizer + // The runtime package is explicitly blocklisted from sanitizer // instrumentation in racewalk.go, but we might be calling into instrumented C // functions here — so we need the pointer parameters to be properly marked. // diff --git a/src/runtime/debugcall.go b/src/runtime/debugcall.go index 5cbe382ce7..496e6ce8cc 100644 --- a/src/runtime/debugcall.go +++ b/src/runtime/debugcall.go @@ -61,7 +61,7 @@ func debugCallCheck(pc uintptr) string { "debugCall16384", "debugCall32768", "debugCall65536": - // These functions are whitelisted so that the debugger can initiate multiple function calls. + // These functions are allowlisted so that the debugger can initiate multiple function calls. // See: https://golang.org/cl/161137/ return } |
