Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bee72f6e27503571b08689a7c5dd4ca29d0e1352
      
https://github.com/WebKit/WebKit/commit/bee72f6e27503571b08689a7c5dd4ca29d0e1352
  Author: Yusuke Suzuki <[email protected]>
  Date:   2026-03-18 (Wed, 18 Mar 2026)

  Changed paths:
    M Source/JavaScriptCore/runtime/ArrayBuffer.cpp
    M Source/WTF/wtf/OSAllocator.h
    M Source/WTF/wtf/playstation/OSAllocatorPlayStation.cpp
    M Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp
    M Source/WTF/wtf/win/OSAllocatorWin.cpp

  Log Message:
  -----------
  [JSC] Use page-based zero-fill for large zero-clear for ArrayBuffer
https://bugs.webkit.org/show_bug.cgi?id=309938
rdar://172531380

Reviewed by Yijia Huang.

Add page-based zero-clearing function to WTF and use it in ArrayBuffer's
growing, which is mainly used wasm memory growth.

* Source/JavaScriptCore/runtime/ArrayBuffer.cpp:
(JSC::zeroFill):
(JSC::ArrayBuffer::resize):
(JSC::SharedArrayBufferContents::grow):
* Source/WTF/wtf/OSAllocator.h:
* Source/WTF/wtf/playstation/OSAllocatorPlayStation.cpp:
(WTF::OSAllocator::zeroFill):
* Source/WTF/wtf/posix/OSAllocatorPOSIX.cpp:
(WTF::OSAllocator::zeroFill):
* Source/WTF/wtf/win/OSAllocatorWin.cpp:
(WTF::OSAllocator::zeroFill):

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



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

Reply via email to