mirror of
https://github.com/golang/go
synced 2024-11-19 15:24:46 -07:00
runtime: Fix misspell in a code comment.
Change-Id: I5ca3beda2b62ead10065602a45c9d178c5e68c65
This commit is contained in:
parent
816154b065
commit
d6a6fa3909
@ -25,7 +25,7 @@ func spinUnlock(state *uint32)
|
|||||||
|
|
||||||
//go:nosplit
|
//go:nosplit
|
||||||
func lockAndCheck(addr *uint64) {
|
func lockAndCheck(addr *uint64) {
|
||||||
// ensure 8-byte alignement
|
// ensure 8-byte alignment
|
||||||
if uintptr(unsafe.Pointer(addr))&7 != 0 {
|
if uintptr(unsafe.Pointer(addr))&7 != 0 {
|
||||||
addr = nil
|
addr = nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user