Commit b54f7564 authored by Benoit Lize's avatar Benoit Lize Committed by Commit Bot

[PartitionAlloc] Enable the thread cache on POSIX OSes.

Bug: 998048
Change-Id: Ida68e21565a44fee0dc22051892eb10c4c806a45
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2421890Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Benoit L <lizeb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#808935}
parent 74844e33
......@@ -229,15 +229,15 @@ void PartitionRoot<thread_safe>::Init(bool enforce_alignment,
// If alignment needs to be enforced, disallow adding cookies and/or tags at
// the beginning of the slot.
allow_extras = !enforce_alignment;
#if !defined(OS_LINUX)
// Linux only, for now.
#if !defined(OS_POSIX)
// TLS in ThreadCache not supported on other OSes.
with_thread_cache = false;
#else
with_thread_cache = enable_thread_cache;
if (with_thread_cache)
internal::ThreadCache::Init(this);
#endif
#endif // !defined(OS_POSIX)
// We mark the sentinel bucket/page as free to make sure it is skipped by our
// logic to find a new active page.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment