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

  Changed paths:
    M Source/JavaScriptCore/heap/BlockDirectory.cpp
    M Source/JavaScriptCore/heap/IsoSubspace.cpp

  Log Message:
  -----------
  [JSC] Unify allocators
https://bugs.webkit.org/show_bug.cgi?id=323629
rdar://186860590

Reviewed by Marcus Plutowski.

Previously each Subspace is having its own allocator. But this is
wasteful so this patch unifies them into one. So we can unlock
exchanging MarkedBlock between them.
But we intentionally do not exchange MarkedBlock when it is
destructible. This is because MarkedBlock::sweep becomes costly, and it
puts sudden cost to the unrelated place when some non destructible cell
uses MarkedBlock coming from destructible cell.

* Source/JavaScriptCore/heap/BlockDirectory.cpp:
(JSC::BlockDirectory::findEmptyBlockToSteal):
* Source/JavaScriptCore/heap/IsoSubspace.cpp:
(JSC::IsoSubspace::IsoSubspace):

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



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

Reply via email to