]> Cypherpunks repositories - gostls13.git/commit
runtime: adjust dropm for write barriers
authorRuss Cox <rsc@golang.org>
Tue, 6 Jan 2015 18:56:21 +0000 (13:56 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 6 Jan 2015 22:23:14 +0000 (22:23 +0000)
commit9b638bf1bf247f228ebd3db58134acb7a87e3b3e
tree36f74a9861b316f7b51fdf06a782d5c54530acc0
parent949dd102229453f8fb55816ea9c33fc762324780
runtime: adjust dropm for write barriers

The line 'mp.schedlink = mnext' has an implicit write barrier call,
which needs a valid g. Move it above the setg(nil).

Change-Id: If3e86c948e856e10032ad89f038bf569659300e0
Reviewed-on: https://go-review.googlesource.com/2347
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/proc1.go