diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-14 14:04:07 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-14 14:04:07 +0000 |
commit | f4324be215fce2863699ae9782aba32c9ddb5d46 (patch) | |
tree | a1c15aa92212673dddb489ef967f302e2d9818b7 | |
parent | 2b5fc145bf5139648c89f763ce434bac457bf4ae (diff) | |
download | gcc-f4324be215fce2863699ae9782aba32c9ddb5d46.tar.gz |
syscall: remove calls to Entersyscall & Exitsyscall in Getdents
The syscall for Getdents in syscall/libcall_linux.go
called Entersyscall and Exitsyscall, causing the
runtime_sched counts for goroutines to be incorrect.
Inconsistent counts caused checkdead in runtime/proc.c
to panic.
Fixes golang/go#11406
Reviewed-on: https://go-review.googlesource.com/11761
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-5-branch@225773 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libgo/go/syscall/libcall_linux.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/libgo/go/syscall/libcall_linux.go b/libgo/go/syscall/libcall_linux.go index d5bedd06aac..93137fc7fb7 100644 --- a/libgo/go/syscall/libcall_linux.go +++ b/libgo/go/syscall/libcall_linux.go @@ -223,7 +223,6 @@ func Getdents(fd int, buf []byte) (n int, err error) { } else { p = (*byte)(unsafe.Pointer(&_zero)) } - Entersyscall() s := SYS_GETDENTS64 if s == 0 { s = SYS_GETDENTS @@ -233,7 +232,6 @@ func Getdents(fd int, buf []byte) (n int, err error) { if n < 0 { err = errno } - Exitsyscall() return } |