diff options
| author | Ian Lance Taylor <iant@golang.org> | 2018-02-12 11:22:00 -0800 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2018-08-22 22:43:12 +0000 |
| commit | 6ebc31f9fb0ade22c605c146f651f18f9fc0b61d (patch) | |
| tree | 10b2470e03749116ed1afae035e358ad46d5a6df /src/runtime/proc.go | |
| parent | be10ad762289943638efb279fc7e04c73b8d7cee (diff) | |
| download | go-6ebc31f9fb0ade22c605c146f651f18f9fc0b61d.tar.xz | |
runtime: remove unused function casp
Change-Id: I7c9c83ba236e1050e04377a7591fef7174df698b
Reviewed-on: https://go-review.googlesource.com/130415
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/proc.go')
| -rw-r--r-- | src/runtime/proc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 32467715c4..c9cc7544b8 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1599,7 +1599,7 @@ func allocm(_p_ *p, fn func()) *m { // the following strategy: there is a stack of available m's // that can be stolen. Using compare-and-swap // to pop from the stack has ABA races, so we simulate -// a lock by doing an exchange (via casp) to steal the stack +// a lock by doing an exchange (via Casuintptr) to steal the stack // head and replace the top pointer with MLOCKED (1). // This serves as a simple spin lock that we can use even // without an m. The thread that locks the stack in this way |
