mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
980146bfde
commit
02b8e6978a
4 changed files with 44 additions and 75 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue