mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue