syscall: remove calls to Entersyscall & Exitsyscall in Getdents
authorIan Lance Taylor <ian@gcc.gnu.org>
Mon, 13 Jul 2015 18:55:15 +0000 (18:55 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Mon, 13 Jul 2015 18:55:15 +0000 (18:55 +0000)
commit51cef06e02c9dce897921c208cc6951e85a93398
tree5b9b2a3cd5fb4ea0ea16eec9cfc9a66a9f1cbbee
parentc5d9ec56700313088f24d486fa1b08849cc52bac
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

From-SVN: r225745
libgo/go/syscall/libcall_linux.go