mirror of
https://github.com/golang/go
synced 2024-11-23 10:50:09 -07:00
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·throw("runtime: wrong goroutine in newstack");
|
||||
}
|
||||
if(g->throwsplit)
|
||||
if(g->m->curg->throwsplit)
|
||||
runtime·throw("runtime: stack split at bad time");
|
||||
|
||||
// The goroutine must be executing in order to call newstack,
|
||||
|
Loading…
Reference in New Issue
Block a user