Commit ab36d98d by Ian Lance Taylor

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

From-SVN: r214048
parent 5802281e
...@@ -2204,6 +2204,7 @@ runtime_gc(int32 force) ...@@ -2204,6 +2204,7 @@ runtime_gc(int32 force)
g->status = Gwaiting; g->status = Gwaiting;
g->waitreason = "garbage collection"; g->waitreason = "garbage collection";
runtime_mcall(mgc); runtime_mcall(mgc);
m = runtime_m();
} }
// all done // all done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment