Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 2cdbc56fb44240ae4946923d626f847afe82d5e4
      
https://github.com/WebKit/WebKit/commit/2cdbc56fb44240ae4946923d626f847afe82d5e4
  Author: Andrew Fryer <a_fr...@apple.com>
  Date:   2025-08-29 (Fri, 29 Aug 2025)

  Changed paths:
    M Source/JavaScriptCore/heap/BlockDirectory.cpp
    M Source/JavaScriptCore/heap/BlockDirectoryBits.h
    M Source/JavaScriptCore/heap/LocalAllocator.cpp

  Log Message:
  -----------
  Change CanAllocateButNotEmpty to CanAllocate
https://bugs.webkit.org/show_bug.cgi?id=162121
rdar://159377308

Reviewed by Keith Miller and Yusuke Suzuki.

Change BlockDirectoryBits to store CanAllocate instead of
CanAllocateButNotEmpty. The difference is that CanAllocate is set for
empty blocks. This way, slow allocation doesn't need to bitwise or with
Empty to find a block for allocation.

* Source/JavaScriptCore/heap/BlockDirectory.cpp:
(JSC::BlockDirectory::findBlockForAllocation):
(JSC::BlockDirectory::endMarking):
* Source/JavaScriptCore/heap/BlockDirectoryBits.h:
* Source/JavaScriptCore/heap/LocalAllocator.cpp:
(JSC::LocalAllocator::tryAllocateWithoutCollecting):
(JSC::LocalAllocator::tryAllocateIn):

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to