Bionic: Add a TLS slot for ART for Thread self
To improve the performance of Thread::Current(), add a tls slot so ART can avoid a pthreads call. Change-Id: Icc86a2b7590734637366f9d5e41a5c6d18cc5772
This commit is contained in:
parent
4955cde2c5
commit
9bbb5a7a09
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ enum {
|
|||
TLS_SLOT_STACK_GUARD = 5, // GCC requires this specific slot for x86.
|
||||
TLS_SLOT_DLERROR,
|
||||
|
||||
// Fast storage for Thread::Current() in ART.
|
||||
TLS_SLOT_ART_THREAD_SELF,
|
||||
|
||||
BIONIC_TLS_SLOTS // Must come last!
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue