mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
runtime/internal/atomic: rename Storep1 to StorepNoWB
Make it clear that the point of this function stores a pointer *without* a write barrier. sed -i -e 's/Storep1/StorepNoWB/' $(git grep -l Storep1) Updates #15270. Change-Id: Ifad7e17815e51a738070655fe3b178afdadaecf6 Reviewed-on: https://go-review.googlesource.com/21994 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Michael Matloob <matloob@golang.org>
This commit is contained in:
parent
da6205b67e
commit
4721ea6abc
15 changed files with 20 additions and 17 deletions
|
|
@ -1075,8 +1075,8 @@ func mapzero(t *_type) {
|
|||
throw("map element too large")
|
||||
}
|
||||
}
|
||||
atomic.Storep1(unsafe.Pointer(&zeroptr), persistentalloc(cursize, 64, &memstats.other_sys))
|
||||
atomic.Storep1(unsafe.Pointer(&zerosize), unsafe.Pointer(zerosize))
|
||||
atomic.StorepNoWB(unsafe.Pointer(&zeroptr), persistentalloc(cursize, 64, &memstats.other_sys))
|
||||
atomic.StorepNoWB(unsafe.Pointer(&zerosize), unsafe.Pointer(zerosize))
|
||||
}
|
||||
unlock(&zerolock)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue