Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1747d6d1de6d24d928964c0bf6f62de4d580f5d2
      
https://github.com/WebKit/WebKit/commit/1747d6d1de6d24d928964c0bf6f62de4d580f5d2
  Author: Marcus Plutowski <[email protected]>
  Date:   2025-06-28 (Sat, 28 Jun 2025)

  Changed paths:
    M Source/bmalloc/bmalloc.xcodeproj/project.pbxproj
    A Source/bmalloc/bmalloc/VMAllocate.cpp
    M Source/bmalloc/bmalloc/VMAllocate.h

  Log Message:
  -----------
  [bmalloc] Use madvise(MADV_ZERO) instead of mmap to zero memory
https://bugs.webkit.org/show_bug.cgi?id=295104
rdar://154496366

Reviewed by Yusuke Suzuki.

Using mmap is pessimizing; I previously fixed this for libpas,
but I didn't realize at the time that there's a parallel flow
in bmalloc. This change thus corresponds to 296321@main, which
solves the same issue but for libpas.

* Source/bmalloc/bmalloc.xcodeproj/project.pbxproj:
* Source/bmalloc/bmalloc/VMAllocate.cpp: Added.
(bmalloc::zeroFillLatchIfMadvZeroIsSupported):
(bmalloc::isMadvZeroSupported):
* Source/bmalloc/bmalloc/VMAllocate.h:
(bmalloc::vmZeroAndPurge):

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



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

Reply via email to