diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2021-10-26 11:27:57 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-26 11:30:21 -0700 |
commit | 2d384f761c42ef9efb7ffdbd1a4f1ca328e60eab (patch) | |
tree | de166e929bcc48ed011a3a09e6959d864ffef87b /pkg/sentry/watchdog/watchdog.go | |
parent | c8d835470037be9efcad13091fb6d173c68cc0ca (diff) |
Change Notify() to use unix.RawSyscall.
eventfd.Notify() uses unix.Write which will eventually
call unix.Syscall which will yield the current go processor
resulting in the Go scheduler parking the current goroutine
till the syscall returns.
But in most cases where Notify() is called there is no reason
to yield as the caller probably wants to continue doing something
right afterwards. Like in the case of the sharedmem endpoint
which may still have more packets to write.
PiperOrigin-RevId: 405693801
Diffstat (limited to 'pkg/sentry/watchdog/watchdog.go')
0 files changed, 0 insertions, 0 deletions