mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: separate doc comment from //go: directives
A future change to gofmt will rewrite // Doc comment. //go:foo to // Doc comment. // //go:foo Apply that change preemptively to all comments (not necessarily just doc comments). For #51082. Change-Id: Iffe0285418d1e79d34526af3520b415a12203ca9 Reviewed-on: https://go-review.googlesource.com/c/go/+/384260 Trust: Russ Cox <rsc@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
parent
81431c7aa7
commit
9839668b56
148 changed files with 363 additions and 0 deletions
|
|
@ -272,6 +272,7 @@ func (gp *guintptr) cas(old, new guintptr) bool {
|
|||
|
||||
// setGNoWB performs *gp = new without a write barrier.
|
||||
// For times when it's impractical to use a guintptr.
|
||||
//
|
||||
//go:nosplit
|
||||
//go:nowritebarrier
|
||||
func setGNoWB(gp **g, new *g) {
|
||||
|
|
@ -305,6 +306,7 @@ func (mp *muintptr) set(m *m) { *mp = muintptr(unsafe.Pointer(m)) }
|
|||
|
||||
// setMNoWB performs *mp = new without a write barrier.
|
||||
// For times when it's impractical to use an muintptr.
|
||||
//
|
||||
//go:nosplit
|
||||
//go:nowritebarrier
|
||||
func setMNoWB(mp **m, new *m) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue