summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-15 22:16:55 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2014-08-15 22:16:55 +0000
commit7ab786d4b60e8a0b60df9121fe5cc86cd0d00c04 (patch)
tree10f68c18e901d8676d7ae891ed007e6c0be2ca75 /libgo
parent64d8d39e1f719bd083cb3bb3a228c07d696f98bf (diff)
downloadgcc-7ab786d4b60e8a0b60df9121fe5cc86cd0d00c04.tar.gz
runtime: Don't get confused if m changes during runtime_gc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214048 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/runtime/mgc0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/runtime/mgc0.c b/libgo/runtime/mgc0.c
index 4b78f3bda56..2d6328fbac3 100644
--- a/libgo/runtime/mgc0.c
+++ b/libgo/runtime/mgc0.c
@@ -2204,6 +2204,7 @@ runtime_gc(int32 force)
g->status = Gwaiting;
g->waitreason = "garbage collection";
runtime_mcall(mgc);
+ m = runtime_m();
}
// all done