summaryrefslogtreecommitdiffstats
path: root/libc/private/bionic_tls.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2015-04-15 16:34:57 -0700
committerChristopher Ferris <cferris@google.com>2015-04-15 17:20:10 -0700
commitc0f89283cc746ff7d6f6be405c603435b8b02657 (patch)
tree0690eb5fe3efb43bba6ce8a465d281ce944e5268 /libc/private/bionic_tls.h
parentcafc948069d447aa1e4dde599ee83bf6c0c5d5d8 (diff)
downloadbionic-c0f89283cc746ff7d6f6be405c603435b8b02657.zip
bionic-c0f89283cc746ff7d6f6be405c603435b8b02657.tar.gz
bionic-c0f89283cc746ff7d6f6be405c603435b8b02657.tar.bz2
Update the number of jemalloc reserved keys.
jemalloc now uses a single key pointing to a structure rather than multiple keys. Change-Id: Ib76185a594ab2cd4dc400d9a7a5bc0a57a7ac92d
Diffstat (limited to 'libc/private/bionic_tls.h')
-rw-r--r--libc/private/bionic_tls.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/libc/private/bionic_tls.h b/libc/private/bionic_tls.h
index 414d171..30dc0eb 100644
--- a/libc/private/bionic_tls.h
+++ b/libc/private/bionic_tls.h
@@ -97,14 +97,8 @@ enum {
#define LIBC_PTHREAD_KEY_RESERVED_COUNT 12
#if defined(USE_JEMALLOC)
-/* Following are current pthread keys used internally by jemalloc:
- * je_thread_allocated_tsd jemalloc
- * je_arenas_tsd jemalloc
- * je_tcache_tsd jemalloc
- * je_tcache_enabled_tsd jemalloc
- * je_quarantine_tsd jemalloc
- */
-#define JEMALLOC_PTHREAD_KEY_RESERVED_COUNT 5
+/* Internally, jemalloc uses a single key for per thread data. */
+#define JEMALLOC_PTHREAD_KEY_RESERVED_COUNT 1
#define BIONIC_PTHREAD_KEY_RESERVED_COUNT (LIBC_PTHREAD_KEY_RESERVED_COUNT + JEMALLOC_PTHREAD_KEY_RESERVED_COUNT)
#else
#define BIONIC_PTHREAD_KEY_RESERVED_COUNT LIBC_PTHREAD_KEY_RESERVED_COUNT