Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 03c6c950449526f3b8d8740bed1fb6a92083dade
https://github.com/WebKit/WebKit/commit/03c6c950449526f3b8d8740bed1fb6a92083dade
Author: Yusuke Suzuki <[email protected]>
Date: 2026-09-08 (Tue, 08 Sep 2026)
Changed paths:
M Source/JavaScriptCore/heap/AlignedMemoryAllocator.cpp
M Source/JavaScriptCore/heap/AlignedMemoryAllocator.h
M Source/JavaScriptCore/heap/CompleteSubspace.cpp
M Source/JavaScriptCore/heap/IsoSubspace.cpp
M Source/JavaScriptCore/heap/LocalAllocator.cpp
M Source/JavaScriptCore/heap/Subspace.cpp
M Source/JavaScriptCore/heap/Subspace.h
Log Message:
-----------
[JSC] Move BlockDirectory for-stealing list to AlignedMemoryAllocator
https://bugs.webkit.org/show_bug.cgi?id=323680
rdar://186935769
Reviewed by Marcus Plutowski.
Holding BlockDirectory cursor for each subspace is meaningless. Let's
just move it to AlignedMemoryAllocator and query to that to find
steal-able MarkedBlock instead.
* Source/JavaScriptCore/heap/AlignedMemoryAllocator.cpp:
(JSC::AlignedMemoryAllocator::registerDirectory):
(JSC::AlignedMemoryAllocator::prepareForAllocation):
(JSC::AlignedMemoryAllocator::findEmptyBlockToSteal):
(JSC::AlignedMemoryAllocator::registerSubspace): Deleted.
* Source/JavaScriptCore/heap/AlignedMemoryAllocator.h:
* Source/JavaScriptCore/heap/CompleteSubspace.cpp:
(JSC::CompleteSubspace::allocatorForSlow):
* Source/JavaScriptCore/heap/IsoSubspace.cpp:
(JSC::IsoSubspace::IsoSubspace):
* Source/JavaScriptCore/heap/LocalAllocator.cpp:
(JSC::LocalAllocator::tryAllocateWithoutCollecting):
* Source/JavaScriptCore/heap/Subspace.cpp:
(JSC::Subspace::initialize):
(JSC::Subspace::prepareForAllocation):
(JSC::Subspace::findEmptyBlockToSteal): Deleted.
* Source/JavaScriptCore/heap/Subspace.h:
(JSC::Subspace::didCreateFirstDirectory): Deleted.
(JSC::Subspace::nextSubspaceInAlignedMemoryAllocator const): Deleted.
(JSC::Subspace::setNextSubspaceInAlignedMemoryAllocator): Deleted.
Canonical link: https://commits.webkit.org/320674@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications