[webkit-changes] [WebKit/WebKit] ef13ba: TZone: Use TZone Allocation in WebKit Processes

Michael Saboff noreply at github.com
Fri Feb 16 06:46:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ef13ba196f4d02aa6e40234ec54f06c4008e84d5
      https://github.com/WebKit/WebKit/commit/ef13ba196f4d02aa6e40234ec54f06c4008e84d5
  Author: Michael Saboff <msaboff at apple.com>
  Date:   2024-02-16 (Fri, 16 Feb 2024)

  Changed paths:
    M Source/JavaScriptCore/API/tests/testapi.c
    M Source/JavaScriptCore/API/tests/testapi.cpp
    M Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
    M Source/JavaScriptCore/Sources.txt
    M Source/JavaScriptCore/assembler/testmasm.cpp
    M Source/JavaScriptCore/b3/air/testair.cpp
    M Source/JavaScriptCore/b3/testb3_1.cpp
    M Source/JavaScriptCore/dfg/testdfg.cpp
    M Source/JavaScriptCore/jsc.cpp
    M Source/JavaScriptCore/runtime/InitializeThreading.cpp
    A Source/JavaScriptCore/runtime/TZoneInit.cpp
    A Source/JavaScriptCore/runtime/TZoneInit.h
    M Source/WTF/wtf/PlatformUse.h
    M Source/WTF/wtf/TZoneMalloc.h
    M Source/WTF/wtf/TZoneMallocInitialization.h
    M Source/WTF/wtf/TZoneMallocInlines.h
    M Source/WebKit/Shared/API/Cocoa/WKMain.h
    M Source/WebKit/Shared/API/Cocoa/WKMain.mm
    A Source/WebKit/Shared/API/RegisterTZoneTypes.cpp
    A Source/WebKit/Shared/API/RegisterTZoneTypes.h
    M Source/WebKit/Shared/EntryPointUtilities/Cocoa/AuxiliaryProcessMain.cpp
    M Source/WebKit/Sources.txt
    M Source/WebKit/WebKit.xcodeproj/project.pbxproj
    M Source/WebKit/WebProcess/WebProcess.cpp
    M Source/WebKit/WebProcess/WebProcess.h
    M Source/bmalloc/bmalloc/TZoneHeapManager.cpp
    M Source/bmalloc/bmalloc/TZoneHeapManager.h

  Log Message:
  -----------
  TZone: Use TZone Allocation in WebKit Processes
https://bugs.webkit.org/show_bug.cgi?id=269418
rdar://122978759

Reviewed by Justin Michaud.

Add TZone initialization to JSC ObjC API, JSC test tools and WebKit Processes.
Adds one TZone allocate class to WebKit, WebProcess.

Added new compile time flag USE_WK_TZONE_MALLOC, to separately control WebKit TZone allocation.
This patch has TZone allocation turned off via BUSE_TZONE in bmalloc/BPlatform.h and USE_TZONE_MALLOC in wtc/PlatformUse.h

* Source/JavaScriptCore/API/tests/testapi.c:
(main):
* Source/JavaScriptCore/API/tests/testapi.cpp:
(WTFTZoneInit): Deleted.
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/Sources.txt:
* Source/JavaScriptCore/runtime/InitializeThreading.cpp:
(JSC::initialize):
* Source/JavaScriptCore/API/TZoneInit.cpp.
(TZoneInit):
(TZoneRegisterTypes):
(TZoneRegisterationDone):
* Source/JavaScriptCore/API/TZoneInit.h.
* Source/WTF/wtf/PlatformUse.h:
* Source/WTF/wtf/TZoneMalloc.h:
* Source/WTF/wtf/TZoneMallocInitialization.h:
* Source/WTF/wtf/TZoneMallocInlines.h:
* Source/WebKit/Shared/API/Cocoa/WKMain.h:
* Source/WebKit/Shared/API/Cocoa/WKMain.mm:
(WKXPCServiceMain):
* Source/WebKit/Shared/API/RegisterTZoneTypes.cpp: Added.
(WebKit::registerTZoneTypes):
* Source/WebKit/Shared/API/RegisterTZoneTypes.h: Added.
* Source/WebKit/Shared/EntryPointUtilities/Cocoa/AuxiliaryProcessMain.cpp:
(main):
* Source/WebKit/Sources.txt:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/WebKit/WebProcess/WebProcess.cpp:
* Source/WebKit/WebProcess/WebProcess.h:
* Source/bmalloc/bmalloc/TZoneHeapManager.cpp:
(bmalloc::api::TZoneHeapManager::init):
(bmalloc::api::TZoneHeapManager::isReady):
(bmalloc::api::TZoneHeapManager::heapRefForTZoneType):
* Source/bmalloc/bmalloc/TZoneHeapManager.h:

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