Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: d14a3b7571a7529d2572a9b021c5fd4b386c4a4e
      
https://github.com/WebKit/WebKit/commit/d14a3b7571a7529d2572a9b021c5fd4b386c4a4e
  Author: Elliott Williams <[email protected]>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M Source/WTF/wtf/PlatformCocoa.cmake
    M Source/bmalloc/PlatformCocoa.cmake

  Log Message:
  -----------
  [CMake] Optimize bmalloc and FastMalloc.cpp in Debug builds on Cocoa
https://bugs.webkit.org/show_bug.cgi?id=325729

Reviewed by Zak Ridouh.

Xcode builds bmalloc at -O3 in every configuration (bmalloc's Base.xcconfig has 
no
Debug override), and WTF.xcodeproj compiles FastMalloc.cpp, which inlines the 
libpas
allocation fast paths, at -O3. The CMake Debug build compiled both at -O0, 
making
allocation-heavy work about 2.5x slower and the WebContent process roughly 1.5x
slower overall than in the Xcode build. That was enough to make
timing-sensitive layout tests such as
media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-mute-button-rtl-positioning.html
time out.

* Source/WTF/wtf/PlatformCocoa.cmake:
* Source/bmalloc/PlatformCocoa.cmake:

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



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

Reply via email to