Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 92e99db5ad76231de89f98ae73fbd3f0b6c0c49f
https://github.com/WebKit/WebKit/commit/92e99db5ad76231de89f98ae73fbd3f0b6c0c49f
Author: Yusuke Suzuki <[email protected]>
Date: 2026-10-13 (Tue, 13 Oct 2026)
Changed paths:
M Source/JavaScriptCore/heap/Heap.cpp
M Source/JavaScriptCore/heap/Heap.h
M Source/JavaScriptCore/parser/SourceProviderCache.h
M Source/JavaScriptCore/runtime/VM.cpp
M Source/JavaScriptCore/runtime/VM.h
Log Message:
-----------
[JSC] Keep SourceCodeCache if it was touched in the last full GC-cycle
https://bugs.webkit.org/show_bug.cgi?id=327460
rdar://189957103
Reviewed by Dan Hecht.
We are clearing SourceCodeCache too aggressively even while we are
parsing a new code from the same SourceCodeProvider still. This patch
keeps SourceCodeCache if we used it in the last full GC-cycle. So once
nobody uses it in the entire full GC-cycle, it will be dropped.
* Source/JavaScriptCore/heap/Heap.cpp:
(JSC::Heap::clearConcurrentRetainedDataIfPossible):
* Source/JavaScriptCore/heap/Heap.h:
* Source/JavaScriptCore/parser/SourceProviderCache.h:
(JSC::SourceProviderCache::markUsed):
(JSC::SourceProviderCache::takeUsedSinceLastPrune):
* Source/JavaScriptCore/runtime/VM.cpp:
(JSC::VM::addSourceProviderCache):
(JSC::VM::pruneUnusedSourceProviderCaches):
(JSC::VM::clearSourceProviderCaches): Deleted.
* Source/JavaScriptCore/runtime/VM.h:
Canonical link: https://commits.webkit.org/323676@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications