[webkit-changes] [WebKit/WebKit] 42ce18: Use aligned_alloc where possible

AtariDreams noreply at github.com
Thu May 23 05:32:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 42ce1889929fe99b82b78440120ec6f4a4ca57f8
      https://github.com/WebKit/WebKit/commit/42ce1889929fe99b82b78440120ec6f4a4ca57f8
  Author: Rose <gfunni234 at gmail.com>
  Date:   2024-05-23 (Thu, 23 May 2024)

  Changed paths:
    M Source/WTF/wtf/FastMalloc.cpp
    M Source/bmalloc/bmalloc/DebugHeap.cpp

  Log Message:
  -----------
  Use aligned_alloc where possible
https://bugs.webkit.org/show_bug.cgi?id=266538

Reviewed by Michael Catanzaro.

aligned_alloc is more portable and cleaner than
posix_memalign is. In fact, aligned_alloc
supersedes posix_memalign entirely.

* Source/WTF/wtf/FastMalloc.cpp: Ditto.
  (WTF::fastAlignedMalloc): Replace posix_memalign
  with aligned_alloc.
  (WTF::tryFastAlignedMalloc): Ditto.
* Source/bmalloc/bmalloc/DebugHeap.cpp: Ditto.
  (bmalloc::DebugHeap::memalign): Ditto.

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



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


More information about the webkit-changes mailing list