1
0
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:
Dmitriy Vyukov 2013-05-30 14:11:49 +04:00
parent 2c4b029b75
commit 573d25a423

View File

@ -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)
{