runtime: Don't get confused if m changes during runtime_gc.

From-SVN: r214048
This commit is contained in:
Ian Lance Taylor 2014-08-15 22:16:55 +00:00
parent 5802281eb6
commit ab36d98dd2

View File

@ -2204,6 +2204,7 @@ runtime_gc(int32 force)
g->status = Gwaiting;
g->waitreason = "garbage collection";
runtime_mcall(mgc);
m = runtime_m();
}
// all done