mirror of
https://github.com/golang/go
synced 2024-11-23 07:30:05 -07:00
runtime: fix use of xadd64
Commit 7407d8e
was rebased over the switch to runtime/internal/atomic
and introduced a call to xadd64, which no longer exists. Fix that
call.
Change-Id: I99c93469794c16504ae4a8ffe3066ac382c66a3a
Reviewed-on: https://go-review.googlesource.com/16816
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
This commit is contained in:
parent
7407d8e582
commit
7d1d642956
@ -392,7 +392,7 @@ func reimburseSweepCredit(unusableBytes uintptr) {
|
||||
// Nobody cares about the credit. Avoid the atomic.
|
||||
return
|
||||
}
|
||||
xadd64(&mheap_.spanBytesAlloc, -int64(unusableBytes))
|
||||
atomic.Xadd64(&mheap_.spanBytesAlloc, -int64(unusableBytes))
|
||||
}
|
||||
|
||||
func dumpFreeList(s *mspan) {
|
||||
|
Loading…
Reference in New Issue
Block a user