mirror of
https://github.com/golang/go
synced 2024-11-26 15:46:54 -07:00
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
This commit is contained in:
parent
e25f19a638
commit
1e063eea38
@ -382,6 +382,8 @@ nomatch:
|
||||
void
|
||||
runtime·startpanic(void)
|
||||
{
|
||||
if(m->mcache == nil) // can happen if called from signal handler or throw
|
||||
m->mcache = runtime·allocmcache();
|
||||
if(m->dying) {
|
||||
runtime·printf("panic during panic\n");
|
||||
runtime·exit(3);
|
||||
|
Loading…
Reference in New Issue
Block a user