Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dce31d0f206f8608085256c0ef15e337ce4a1710
      
https://github.com/WebKit/WebKit/commit/dce31d0f206f8608085256c0ef15e337ce4a1710
  Author: Kai Tamkun <[email protected]>
  Date:   2026-07-01 (Wed, 01 Jul 2026)

  Changed paths:
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h
    A Tools/TestWebKitAPI/Tests/WTF/bmalloc/MAR.cpp

  Log Message:
  -----------
  [libpas] bmalloc_try_allocate_zeroed_inline calls PAS_MAR_TRACK_ALLOCATION 
instead of PAS_MAR_TRACK_ALLOCATION_AND_ZERO on MAR branch, returning unzeroed 
memory
rdar://175683200
https://bugs.webkit.org/show_bug.cgi?id=314679

Reviewed by Yusuke Suzuki.

This patch changes `bmalloc_try_allocate_zeroed_inline` so that it
zeroes the returned memory in the case where the MAR predicate matches.

Tests: Tools/TestWebKitAPI/Tests/WTF/bmalloc/MAR.cpp

* Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h:
(bmalloc_try_allocate_zeroed_inline): Zero the returned memory.
* Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
* Tools/TestWebKitAPI/Tests/WTF/bmalloc/MAR.cpp: Added.
(TestWebKitAPI::pageIndexOf):
(TestWebKitAPI::testZeroedAllocationAfterPriming):
(TestWebKitAPI::TEST(bmalloc, MARZeroedAllocationWithMARDisabled)):
(TestWebKitAPI::TEST(bmalloc, MARZeroedAllocationWithMAREnabled)):

Originally-landed-as: 305413.946@safari-7624-branch (d945beacb08e). 
rdar://180428128
Canonical link: https://commits.webkit.org/316277@main



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

Reply via email to