commit | 5d9a7ba0dc9c24ed4e4efa9cac0e796fd524b308 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri May 30 19:00:03 2014 -0700 |
committer | Elliott Hughes <enh@google.com> | Mon Jun 02 10:32:55 2014 -0700 |
tree | 4674df3b5064cb38211453b6e887c364f0c66f05 | |
parent | 831405b749d15a11fb947a40d61fd858e952d860 [diff] |
Avoid a system call in 'gettid'. System calls can be pretty slow. This is mako, which has one of our lowest latencies: iterations ns/op BM_unistd_getpid 10000000 209 BM_unistd_gettid 200000000 8 Bug: 15297299 (kernel panic from too many gettid calls) Bug: 15315766 (excessive gettid overhead in liblogd) Change-Id: I49656c0fc5b5d092390264a59e4f2c0d8a8b1aeb