summaryrefslogtreecommitdiff
path: root/libgo/go/runtime/mgc.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2017-06-08 19:02:12 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2017-06-08 19:02:12 +0000
commit20e96b489ea501861c0bb6e509888275d682ed2f (patch)
treef064a2348260e9821e3f50ff2fc8a0247c19be56 /libgo/go/runtime/mgc.go
parent34361776fb238310222e0b24d4f0b51a3717a785 (diff)
downloadgcc-20e96b489ea501861c0bb6e509888275d682ed2f.tar.gz
libgo: update to 1.8.3 release
Reviewed-on: https://go-review.googlesource.com/45150 From-SVN: r249033
Diffstat (limited to 'libgo/go/runtime/mgc.go')
-rw-r--r--libgo/go/runtime/mgc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/runtime/mgc.go b/libgo/go/runtime/mgc.go
index f828e7c28f3..5cee12d8b81 100644
--- a/libgo/go/runtime/mgc.go
+++ b/libgo/go/runtime/mgc.go
@@ -1908,7 +1908,7 @@ func gchelper() {
traceGCScanDone()
}
- nproc := work.nproc // work.nproc can change right after we increment work.ndone
+ nproc := atomic.Load(&work.nproc) // work.nproc can change right after we increment work.ndone
if atomic.Xadd(&work.ndone, +1) == nproc-1 {
notewakeup(&work.alldone)
}