diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-11-14 01:24:52 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-11-14 01:24:52 +0000 |
commit | ea0b860502bbb6c24b2c4f853c2d4c97e5d96f2b (patch) | |
tree | f4dda4b865cb4380c2d7ee549196f94554aaa671 /bin | |
parent | cbf9e0a3f94f230c45edb13092f4b4b0ae60342a (diff) | |
download | FreeBSD-src-ea0b860502bbb6c24b2c4f853c2d4c97e5d96f2b.zip FreeBSD-src-ea0b860502bbb6c24b2c4f853c2d4c97e5d96f2b.tar.gz |
When repeatedly accessing a thread credential, cache the credential
pointer in a local thread. While this is unlikely to significantly
improve performance given modern compiler behavior, it makes the code
more readable and reduces diffs to the Mac OS X version of the same
code (which stores things in creds in the same way, but where the
cred for a thread is reached quite differently).
Discussed with: sson
MFC after: 1 month
Sponsored by: Apple Inc.
Obtained from: TrustedBSD Project
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions