mirror of https://github.com/golang/go.git
runtime: fix throwsplit check
Newstack runs on g0, g0->throwsplit is never set. LGTM=rsc R=rsc CC=golang-codereviews, khr https://golang.org/cl/147370043
This commit is contained in:
parent
70b2da98ca
commit
12308d5a0b
|
|
@ -695,7 +695,7 @@ runtime·newstack(void)
|
||||||
runtime·traceback(morebuf.pc, morebuf.sp, morebuf.lr, morebuf.g);
|
runtime·traceback(morebuf.pc, morebuf.sp, morebuf.lr, morebuf.g);
|
||||||
runtime·throw("runtime: wrong goroutine in newstack");
|
runtime·throw("runtime: wrong goroutine in newstack");
|
||||||
}
|
}
|
||||||
if(g->throwsplit)
|
if(g->m->curg->throwsplit)
|
||||||
runtime·throw("runtime: stack split at bad time");
|
runtime·throw("runtime: stack split at bad time");
|
||||||
|
|
||||||
// The goroutine must be executing in order to call newstack,
|
// The goroutine must be executing in order to call newstack,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue