mirror of
https://github.com/golang/go
synced 2024-11-22 05:34:39 -07:00
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
This commit is contained in:
parent
79c62aaa99
commit
e2bde5cf9b
@ -547,6 +547,9 @@ gosched(void)
|
|||||||
// Record that it's not using the cpu anymore.
|
// Record that it's not using the cpu anymore.
|
||||||
// This is called only from the go syscall library and cgocall,
|
// This is called only from the go syscall library and cgocall,
|
||||||
// not from the low-level system calls used by the runtime.
|
// 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
|
void
|
||||||
·entersyscall(void)
|
·entersyscall(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user