[webkit-changes] [WebKit/WebKit] 43d96a: [TZone] Update macros / cleanup to prepare for con...

Michael Saboff noreply at github.com
Tue Aug 6 16:42:51 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 43d96aea3b91c8448de449b4d36252eda0c6eb3f
      https://github.com/WebKit/WebKit/commit/43d96aea3b91c8448de449b4d36252eda0c6eb3f
  Author: Michael Saboff <msaboff at apple.com>
  Date:   2024-08-06 (Tue, 06 Aug 2024)

  Changed paths:
    M Source/JavaScriptCore/wasm/WasmCallee.cpp
    M Source/WTF/wtf/FastMalloc.h
    M Source/WTF/wtf/PlatformUse.h
    M Source/WTF/wtf/TZoneMalloc.h
    M Source/WTF/wtf/TZoneMallocInlines.h
    M Source/WebKit/WebProcess/WebProcess.cpp
    M Source/WebKit/WebProcess/WebProcess.h
    M Source/bmalloc/bmalloc/TZoneHeap.h

  Log Message:
  -----------
  [TZone] Update macros / cleanup to prepare for converting IsoHeap allocations to TZone
https://bugs.webkit.org/show_bug.cgi?id=277697
rdar://133308020

Reviewed by Yusuke Suzuki.

Added new macros for TZone annotations that should fallback to IsoHeap allocation.  These macros are in the form
WTF_MAKE_TZONE_OR_ISO_ALLOCATED*.  These macros switch between TZone, IsoHeap or FastMalloc allocation depending on
the settings of USE_TZONE_MALLOC, USE_ISO_MALLOC and USE_SYSTEM_MALLOC, with USE_TZONE_MALLOC having priority over
USE_ISO_MALLOC. These new macros are unused in the change, but will be put to use in a followup refactoring change.
Deleted the WTF_MAKE_WK_TZONE_ALLOCATED* macros as we don't need a separate set of macros for TZone allocation.
Changed the sole use of these macros to use WTF_MAKE_TZONE_ALLOCATED*.
Added the missing implementation of allocate(size_t) to CompactTZoneHeap.

* Source/JavaScriptCore/wasm/WasmCallee.cpp:
* Source/WTF/wtf/FastMalloc.h:
* Source/WTF/wtf/PlatformUse.h:
* Source/WTF/wtf/TZoneMalloc.h:
* Source/WTF/wtf/TZoneMallocInlines.h:
* Source/WebKit/WebProcess/WebProcess.cpp:
* Source/WebKit/WebProcess/WebProcess.h:
* Source/bmalloc/bmalloc/TZoneHeap.h:
(bmalloc::api::CompactTZoneHeap::allocate):

Canonical link: https://commits.webkit.org/281926@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