[webkit-changes] [WebKit/WebKit] c1017d: [JSC] Use DeferGCForAWhile instead of DeferGC in c...

Commit Queue noreply at github.com
Tue Mar 19 07:46:08 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c1017d3d1fc53f46679a5e2df2d6d71b66253fd8
      https://github.com/WebKit/WebKit/commit/c1017d3d1fc53f46679a5e2df2d6d71b66253fd8
  Author: Yijia Huang <yijia_huang at apple.com>
  Date:   2024-03-19 (Tue, 19 Mar 2024)

  Changed paths:
    M Source/JavaScriptCore/runtime/ErrorInstance.cpp

  Log Message:
  -----------
  [JSC] Use DeferGCForAWhile instead of DeferGC in computeErrorInfo
https://bugs.webkit.org/show_bug.cgi?id=268489
rdar://121906810

Reviewed by Mark Lam, Yusuke Suzuki and Justin Michaud.

ErrorInstance::computeErrorInfo can be called from GC's Heap::runEndPhase.
In the case, we should use DeferGCForAWhile instead of DeferGC since it
can trigger another GC in its destruction.

* Source/JavaScriptCore/runtime/ErrorInstance.cpp:
(JSC::ErrorInstance::computeErrorInfo):

Originally-landed-as: 272448.442 at safari-7618-branch (58204e87a044). rdar://124554094
Canonical link: https://commits.webkit.org/276346@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