Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e2eefa65e84f75b5f39fcf526c094f0bb48b9789
https://github.com/WebKit/WebKit/commit/e2eefa65e84f75b5f39fcf526c094f0bb48b9789
Author: Dan Hecht <[email protected]>
Date: 2026-10-06 (Tue, 06 Oct 2026)
Changed paths:
M Source/JavaScriptCore/heap/Collector.cpp
M Source/JavaScriptCore/heap/CollectorInlines.h
Log Message:
-----------
[JSC] Read the Collector's heap through heap()
https://bugs.webkit.org/show_bug.cgi?id=326436
rdar://189240961
Reviewed by Marcus Plutowski.
Currently a Collector refers to only one Heap, but eventually a Collector
will cover a set of heaps, and those uses will change, a few at a time
to handle a collection across multiple Heaps. Read the heap through
heap() everywhere first, so that each later change touches only the
sites it is about.
No behavior change.
* Source/JavaScriptCore/heap/Collector.cpp:
(JSC::Collector::requestCollection):
(JSC::Collector::shouldCollectInCollectorThread):
(JSC::Collector::decideCollectionScope):
(JSC::Collector::collectInMutatorThread):
(JSC::Collector::runCurrentPhase):
(JSC::Collector::runBeginPhase):
(JSC::Collector::beginCollectionInEachHeap):
(JSC::Collector::runFixpointPhase):
(JSC::Collector::runReloopPhase):
(JSC::Collector::runEndPhase):
(JSC::Collector::endCollectionInEachHeap):
(JSC::Collector::changePhase):
(JSC::Collector::finishChangingPhase):
(JSC::Collector::stopThePeriphery):
(JSC::Collector::resumeThePeriphery):
(JSC::Collector::suspendCompilerThreads):
(JSC::Collector::addMarkingConstraint):
* Source/JavaScriptCore/heap/CollectorInlines.h:
(JSC::Collector::forEachSlotVisitor):
Canonical link: https://commits.webkit.org/322849@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications