mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-25 14:56:10 +03:00
base/allocator: Revert stack scanning refactor
It is still only used by starscan, which is not used by us. It causes hanging in pthread_getattr_np() under qemu-user, see https://www.openwall.com/lists/musl/2017/06/15/9. Introduced in https://chromium-review.googlesource.com/c/chromium/src/+/5371077
This commit is contained in:
parent
52e3f778eb
commit
70b796b0a4
@ -1317,10 +1317,10 @@ void PartitionAllocSupport::ReconfigureAfterFeatureListInit(
|
|||||||
#endif // PA_BUILDFLAG(USE_STARSCAN)
|
#endif // PA_BUILDFLAG(USE_STARSCAN)
|
||||||
|
|
||||||
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
||||||
|
#if PA_BUILDFLAG(USE_STARSCAN)
|
||||||
partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(
|
partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(
|
||||||
partition_alloc::internal::GetStackTop());
|
partition_alloc::internal::GetStackTop());
|
||||||
|
|
||||||
#if PA_BUILDFLAG(USE_STARSCAN)
|
|
||||||
// Non-quarantinable partition is dealing with hot V8's zone allocations.
|
// Non-quarantinable partition is dealing with hot V8's zone allocations.
|
||||||
// In case PCScan is enabled in Renderer, enable thread cache on this
|
// In case PCScan is enabled in Renderer, enable thread cache on this
|
||||||
// partition. At the same time, thread cache on the main(malloc) partition
|
// partition. At the same time, thread cache on the main(malloc) partition
|
||||||
|
Loading…
Reference in New Issue
Block a user