1
0
mirror of https://github.com/golang/go synced 2024-11-24 21:20:05 -07:00

runtime: don't let select split stack

Fixes #1209.

R=ken2
CC=golang-dev
https://golang.org/cl/2612041
This commit is contained in:
Russ Cox 2010-10-20 15:54:17 -04:00
parent c026c91b5c
commit 6a3b29895f

View File

@ -620,6 +620,12 @@ selunlock(Select *sel)
}
// selectgo(sel *byte);
//
// overwrites return pc on stack to signal which case of the select
// to run, so cannot appear at the top of a split stack.
// frame has 6 pointers and 4 int32 so 64 bytes max.
// that's less than StackGuard-StackSmall, so okay.
#pragma textflag 7
void
·selectgo(Select *sel)
{