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:
klzgrad 2024-05-13 19:08:53 +08:00
parent 52e3f778eb
commit 70b796b0a4

View File

@ -1317,10 +1317,10 @@ void PartitionAllocSupport::ReconfigureAfterFeatureListInit(
#endif // PA_BUILDFLAG(USE_STARSCAN)
#if PA_BUILDFLAG(USE_PARTITION_ALLOC_AS_MALLOC)
#if PA_BUILDFLAG(USE_STARSCAN)
partition_alloc::internal::StackTopRegistry::Get().NotifyThreadCreated(
partition_alloc::internal::GetStackTop());
#if PA_BUILDFLAG(USE_STARSCAN)
// Non-quarantinable partition is dealing with hot V8's zone allocations.
// In case PCScan is enabled in Renderer, enable thread cache on this
// partition. At the same time, thread cache on the main(malloc) partition