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

[PartitionAlloc] Disable the thread cache for malloc() on Windows.

This breaks compilation, disable it temporarily.

Bug: 998048
Change-Id: Ic55d9eed165742a97389a225abe139a5c7fb8be5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2472357
Auto-Submit: Benoit L <lizeb@chromium.org>
Commit-Queue: Kentaro Hara <haraken@chromium.org>
Reviewed-by: default avatarYuki Shiino <yukishiino@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817344}
parent b6de1afb
......@@ -320,7 +320,10 @@ void PartitionRoot<thread_safe>::Init(PartitionOptions opts) {
// this operation is idempotent, so there is no harm.
InitBucketIndexLookup(this);
#if !defined(PA_THREAD_CACHE_SUPPORTED)
// Temporarily disabled for PartitionAlloc-Everywhere builds on Windows, as it
// breaks the build.
#if !defined(PA_THREAD_CACHE_SUPPORTED) || \
(defined(OS_WIN) && BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC))
// TLS in ThreadCache not supported on other OSes.
with_thread_cache = false;
#else
......@@ -329,7 +332,8 @@ void PartitionRoot<thread_safe>::Init(PartitionOptions opts) {
if (with_thread_cache)
internal::ThreadCache::Init(this);
#endif // !defined(OS_POSIX)
#endif // !defined(PA_THREAD_CACHE_SUPPORTED) || \
// (defined(OS_WIN) && BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC))
initialized = true;
}
......
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