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
diff --git a/libc/private/bionic_tls.h b/libc/private/bionic_tls.h
index d92d9d9..58670bb 100644
--- a/libc/private/bionic_tls.h
+++ b/libc/private/bionic_tls.h
@@ -67,6 +67,9 @@
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!
};