Commit e2bde5cf authored by Russ Cox's avatar Russ Cox

runtime: fix another stack split bug

Makes godoc --http=:1234 not crash on linux/amd64.

R=r
CC=golang-dev
https://golang.org/cl/1975044
parent 79c62aaa
......@@ -547,6 +547,9 @@ gosched(void)
// Record that it's not using the cpu anymore.
// This is called only from the go syscall library and cgocall,
// not from the low-level system calls used by the runtime.
// Entersyscall cannot split the stack: the gosave must
// make g->sched refer to the caller's stack pointer.
#pragma textflag 7
void
·entersyscall(void)
{
......
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