gvisor/pkg/sentry
Michael Pratt 75a5ccf5d9 Remove defer from trivial ThreadID methods
In particular, ns.IDOfTask and tg.ID are used for gettid and getpid,
respectively, where removing defer saves ~100ns. This may be a small
improvement to application logging, which may call gettid/getpid
frequently.

PiperOrigin-RevId: 242039616
Change-Id: I860beb62db3fe077519835e6bafa7c74cba6ca80
2019-04-04 17:14:27 -07:00
..
arch Change /proc/PID/cmdline to read environment vector. 2019-02-05 10:02:06 -08:00
context Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
control Add profiling commands to runsc 2019-03-11 11:47:30 -07:00
device Save/restore simple devices. 2019-04-01 15:39:16 -07:00
fs Don't release d.mu in checks for child-existence. 2019-04-03 17:53:56 -07:00
hostcpu Remove license comments 2019-01-31 11:12:53 -08:00
inet Remove license comments 2019-01-31 11:12:53 -08:00
kernel Remove defer from trivial ThreadID methods 2019-04-04 17:14:27 -07:00
limits Remove license comments 2019-01-31 11:12:53 -08:00
loader Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
memmap Call memmap.Mappable.Translate with more conservative usermem.AccessType. 2019-03-25 12:42:43 -07:00
memutil Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
mm Don't expand COW-break on executable VMAs. 2019-04-01 14:47:31 -07:00
pgalloc Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
platform Allow BP and OF can be called from user space 2019-03-21 22:04:50 -07:00
safemem Priority-inheritance futex implementation 2019-03-05 23:40:18 -08:00
sighandling Remove license comments 2019-01-31 11:12:53 -08:00
socket Add ICMP stats 2019-03-28 14:09:20 -07:00
state Treat ENOSPC as a state-file error during save. 2019-03-29 12:26:25 -07:00
strace Format capget/capset arguments 2019-03-01 10:46:36 -08:00
syscalls BUILD: Add useful go_path target 2019-04-04 17:05:38 -07:00
time Move package sync to third_party 2019-01-31 17:49:14 -08:00
unimpl Remove license comments 2019-01-31 11:12:53 -08:00
uniqueid Remove license comments 2019-01-31 11:12:53 -08:00
usage Decouple filemem from platform and move it to pgalloc.MemoryFile. 2019-03-14 08:12:48 -07:00
usermem Convert []byte to string without copying in usermem.CopyStringIn. 2019-03-27 10:46:28 -07:00
watchdog Remove license comments 2019-01-31 11:12:53 -08:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00