mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
musl: allocator: Fix hanging in qemu-user
It causes hanging in pthread_getattr_np() under qemu-user, see https://www.openwall.com/lists/musl/2017/06/15/9.
This commit is contained in:
parent
ae86738153
commit
31e8a9ff5c
@ -1117,8 +1117,12 @@ void PartitionAllocSupport::ReconfigureAfterFeatureListInit(
|
|||||||
UmaHistogramCounts100("Memory.PartitionAlloc.PartitionRoot.ExtrasSize",
|
UmaHistogramCounts100("Memory.PartitionAlloc.PartitionRoot.ExtrasSize",
|
||||||
int(extras_size));
|
int(extras_size));
|
||||||
|
|
||||||
|
#if !defined(__MUSL__)
|
||||||
|
// This call causes hanging in pthread_getattr_np() under qemu-user, see
|
||||||
|
// https://www.openwall.com/lists/musl/2017/06/15/9.
|
||||||
partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(
|
partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(
|
||||||
partition_alloc::internal::GetStackTop());
|
partition_alloc::internal::GetStackTop());
|
||||||
|
#endif
|
||||||
|
|
||||||
allocator_shim::internal::PartitionAllocMalloc::Allocator()
|
allocator_shim::internal::PartitionAllocMalloc::Allocator()
|
||||||
->EnableThreadCacheIfSupported();
|
->EnableThreadCacheIfSupported();
|
||||||
|
Loading…
Reference in New Issue
Block a user