Commit 6a3b2989 authored by Russ Cox's avatar Russ Cox

runtime: don't let select split stack

Fixes #1209.

R=ken2
CC=golang-dev
https://golang.org/cl/2612041
parent c026c91b
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment