diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-08 19:02:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2017-06-08 19:02:12 +0000 |
commit | 20e96b489ea501861c0bb6e509888275d682ed2f (patch) | |
tree | f064a2348260e9821e3f50ff2fc8a0247c19be56 /libgo/go/runtime/mgc.go | |
parent | 34361776fb238310222e0b24d4f0b51a3717a785 (diff) | |
download | gcc-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.go | 2 |
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) } |