Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6bdb4f69e23bba6d8c105477da09c4edec06ffaa
      
https://github.com/WebKit/WebKit/commit/6bdb4f69e23bba6d8c105477da09c4edec06ffaa
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-08-04 (Tue, 04 Aug 2026)

  Changed paths:
    M Source/JavaScriptCore/heap/Heap.cpp
    M Source/JavaScriptCore/heap/LocalAllocator.cpp
    M Source/JavaScriptCore/heap/LocalAllocator.h
    M Source/JavaScriptCore/heap/MarkedBlock.cpp
    M Source/JavaScriptCore/heap/MarkedBlock.h
    M Source/JavaScriptCore/heap/MarkedSpace.cpp
    M Source/JavaScriptCore/heap/MarkedSpace.h

  Log Message:
  -----------
  [JSC] Simplify VM teardown via specialized stopAllocationForGood
https://bugs.webkit.org/show_bug.cgi?id=321015
rdar://184053208

Reviewed by Keith Miller.

This attempts to reduce VM teardown time by simplifying
MarkedSpace::lastChanceToFinalize. In MarkedBlock::Handle::stopAllocating,
we add StopAllocatingMode::ForGood mode where we do not modify
maintenance bits as we know that we will teardown the VM & Heap
immediately after this call.

* Source/JavaScriptCore/heap/Heap.cpp:
(JSC::Heap::lastChanceToFinalize):
* Source/JavaScriptCore/heap/LocalAllocator.cpp:
(JSC::LocalAllocator::stopAllocating):
(JSC::LocalAllocator::stopAllocatingForGood):
* Source/JavaScriptCore/heap/LocalAllocator.h:
* Source/JavaScriptCore/heap/MarkedBlock.cpp:
(JSC::MarkedBlock::Handle::stopAllocating):
* Source/JavaScriptCore/heap/MarkedBlock.h:
* Source/JavaScriptCore/heap/MarkedSpace.cpp:
(JSC::MarkedSpace::lastChanceToFinalize):
(JSC::MarkedSpace::stopAllocatingForGood): Deleted.
* Source/JavaScriptCore/heap/MarkedSpace.h:

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



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

Reply via email to