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:
Andreas Gampe 2015-07-28 19:53:54 -07:00
parent 4955cde2c5
commit 9bbb5a7a09

View file

@ -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!
};