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

  Changed paths:
    M Source/JavaScriptCore/heap/MarkedBlock.cpp
    M Source/WTF/wtf/BitSet.h

  Log Message:
  -----------
  [JSC] Optimize MarkedBlock::Handle::stopAllocating
https://bugs.webkit.org/show_bug.cgi?id=322480
rdar://185772918

Reviewed by Dan Hecht.

In MarkedBlock::Handle::stopAllocating, we need to set a bit for
NewlyAllocated status in BitSet. This can be accelerated by using
setEachNthBit as cell size is fixed for each MarkedBlock. This patch
uses it. Also optimizing setEachNthBit code not to do read-modify-write
multiple times for the same word.

* Source/JavaScriptCore/heap/MarkedBlock.cpp:
(JSC::MarkedBlock::Handle::stopAllocating):
* Source/WTF/wtf/BitSet.h:
(WTF::WordType>::setEachNthBit):

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



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

Reply via email to