diff options
author | Michael Pratt <mpratt@google.com> | 2019-04-04 17:13:31 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-04 17:14:27 -0700 |
commit | 75a5ccf5d98876c26305da0feff20e4a148027ec (patch) | |
tree | df7ae64d05c7537108d3d8c278a61da8f394da41 /pkg/sentry/fs/proc | |
parent | 75c8ac38e0f6cc4eb3726c89aee41357cd592c4b (diff) |
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
Diffstat (limited to 'pkg/sentry/fs/proc')
0 files changed, 0 insertions, 0 deletions