Commit 1e063eea authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

runtime: prepare for M's running w/o mcache

Can not happen ATM. In preparation for the new scheduler.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7388043
parent e25f19a6
...@@ -382,6 +382,8 @@ nomatch: ...@@ -382,6 +382,8 @@ nomatch:
void void
runtime·startpanic(void) runtime·startpanic(void)
{ {
if(m->mcache == nil) // can happen if called from signal handler or throw
m->mcache = runtime·allocmcache();
if(m->dying) { if(m->dying) {
runtime·printf("panic during panic\n"); runtime·printf("panic during panic\n");
runtime·exit(3); runtime·exit(3);
......
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