Switch pthread_create over to __bionic_clone.
Bug: 8206355
Bug: 11693195
Change-Id: I04aadbc36c87e1b7e33324b9a930a1e441fbfed6
diff --git a/libc/private/bionic_tls.h b/libc/private/bionic_tls.h
index a14bd3c..094c71c 100644
--- a/libc/private/bionic_tls.h
+++ b/libc/private/bionic_tls.h
@@ -51,6 +51,9 @@
TLS_SLOT_THREAD_ID,
TLS_SLOT_ERRNO,
+ /* This slot is used when starting a new thread, before any code that needs errno runs. */
+ TLS_SLOT_START_MUTEX = TLS_SLOT_ERRNO,
+
/* These two aren't used by bionic itself, but allow the graphics code to
* access TLS directly rather than using the pthread API. */
TLS_SLOT_OPENGL_API = 3,