mirror of
https://github.com/golang/go
synced 2024-11-26 15:06:52 -07:00
runtime: mark runtime.goexit as nosplit
Required for preemptive scheduler, see the comment. R=golang-dev, daniel.morsing CC=golang-dev https://golang.org/cl/9841047
This commit is contained in:
parent
2c4b029b75
commit
573d25a423
@ -1223,6 +1223,10 @@ gosched0(G *gp)
|
||||
}
|
||||
|
||||
// Finishes execution of the current goroutine.
|
||||
// Need to mark it as nosplit, because it runs with sp > stackbase (as runtime·lessstack).
|
||||
// Since it does not return it does not matter. But if it is preempted
|
||||
// at the split stack check, GC will complain about inconsistent sp.
|
||||
#pragma textflag 7
|
||||
void
|
||||
runtime·goexit(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user