Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Postpone initialization of StructureAlignedMemoryAllocator.
https://bugs.webkit.org/show_bug.cgi?id=263380 Reviewed by Keith Miller. StructureAlignedMemoryAllocator reserves a large amount of pages at startup even on UIProcess and NetworkProcess because the initialization is called from JSC::initialize(). In this patch, we postpone the initialization of StructureAlignedMemoryAllocator until the first time it is used. Because permanentlyFreeze() will be called at the end of construction of VM, it is safe to postpone the initialization. * Source/JavaScriptCore/heap/StructureAlignedMemoryAllocator.cpp: (JSC::StructureAlignedMemoryAllocator::tryMallocBlock): * Source/JavaScriptCore/runtime/InitializeThreading.cpp: (JSC::initialize): Canonical link: https://commits.webkit.org/269633@main
- Loading branch information