mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 08:16: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
8b454ee8f7
commit
0edc025ec4
@ -1245,10 +1245,10 @@ void PartitionAllocSupport::ReconfigureAfterFeatureListInit(
|
|||||||
#endif // BUILDFLAG(USE_STARSCAN)
|
#endif // BUILDFLAG(USE_STARSCAN)
|
||||||
|
|
||||||
#if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
#if BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
|
||||||
|
#if BUILDFLAG(USE_STARSCAN)
|
||||||
partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(
|
partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(
|
||||||
partition_alloc::internal::GetStackTop());
|
partition_alloc::internal::GetStackTop());
|
||||||
|
|
||||||
#if 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