[webkit-changes] [WebKit/WebKit] 0cc7da: [JSC] Clear stringReplaceCache only when full GC runs

Yusuke Suzuki noreply at github.com
Thu Aug 8 08:44:18 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0cc7dadd7eebdc17637dcce898dc2fd18da1432a
      https://github.com/WebKit/WebKit/commit/0cc7dadd7eebdc17637dcce898dc2fd18da1432a
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2024-08-08 (Thu, 08 Aug 2024)

  Changed paths:
    M Source/JavaScriptCore/heap/Heap.cpp
    M Source/JavaScriptCore/runtime/StringReplaceCache.h
    M Source/JavaScriptCore/runtime/StringReplaceCacheInlines.h
    M Source/JavaScriptCore/runtime/VM.cpp

  Log Message:
  -----------
  [JSC] Clear stringReplaceCache only when full GC runs
https://bugs.webkit.org/show_bug.cgi?id=277792
rdar://133437377

Reviewed by Keith Miller.

Let's just keep these entries alive during Eden GC. We mark them in Eden GC and clear them in Full GC.

* Source/JavaScriptCore/heap/Heap.cpp:
(JSC::Heap::finalize):
* Source/JavaScriptCore/runtime/StringReplaceCache.h:
* Source/JavaScriptCore/runtime/StringReplaceCacheInlines.h:
(JSC::StringReplaceCache::visitAggregateImpl):
* Source/JavaScriptCore/runtime/VM.cpp:
(JSC::VM::visitAggregateImpl):

Canonical link: https://commits.webkit.org/281994@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list