mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +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
14bf4d800c
commit
2b496e3a9b
@ -1289,10 +1289,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