diff options
| author | Jeremy Jackins <jeremyjackins@gmail.com> | 2016-04-13 18:16:21 +0900 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2016-04-14 18:34:09 +0000 |
| commit | 02b8e6978a86c2f4f3a604e8b05014d127f4020a (patch) | |
| tree | 95a73746d1be6cda7d0bd2e6906cadb33e794561 /src/runtime/lfstack.go | |
| parent | 980146bfde2b4e2d62c537023c19670666fc0604 (diff) | |
| download | go-02b8e6978a86c2f4f3a604e8b05014d127f4020a.tar.xz | |
runtime: find a home for orphaned comments
These comments were left behind after runtime.h was converted
from C to Go. I examined the original code and tried to move these
to the places that the most sense.
Change-Id: I8769d60234c0113d682f9de3bd8d6c34c450c188
Reviewed-on: https://go-review.googlesource.com/21969
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/lfstack.go')
| -rw-r--r-- | src/runtime/lfstack.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/lfstack.go b/src/runtime/lfstack.go index 1261f54d97..db54ecb05e 100644 --- a/src/runtime/lfstack.go +++ b/src/runtime/lfstack.go @@ -3,6 +3,9 @@ // license that can be found in the LICENSE file. // Lock-free stack. +// Initialize head to 0, compare with 0 to test for emptiness. +// The stack does not keep pointers to nodes, +// so they can be garbage collected if there are no other pointers to nodes. // The following code runs only on g0 stack. package runtime |
