Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 16f89907d5e9b667b3ee4486c2a1d86c2643b315
https://github.com/WebKit/WebKit/commit/16f89907d5e9b667b3ee4486c2a1d86c2643b315
Author: Michael Saboff <[email protected]>
Date: 2024-07-31 (Wed, 31 Jul 2024)
Changed paths:
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.h
M Source/JavaScriptCore/b3/testb3_1.cpp
M Source/JavaScriptCore/dfg/testdfg.cpp
M Source/JavaScriptCore/jsc.cpp
M Source/JavaScriptCore/runtime/InitializeThreading.cpp
R Source/JavaScriptCore/runtime/RegisterTZoneTypes.cpp
R Source/JavaScriptCore/runtime/RegisterTZoneTypes.h
R Source/JavaScriptCore/runtime/TZoneInit.cpp
R Source/JavaScriptCore/runtime/TZoneInit.h
M Source/JavaScriptCore/runtime/WeakGCSet.h
M Source/JavaScriptCore/wasm/WasmMemory.cpp
M Source/JavaScriptCore/wasm/WasmMemory.h
M Source/WTF/WTF.xcodeproj/project.pbxproj
M Source/WTF/wtf/CMakeLists.txt
M Source/WTF/wtf/PlatformUse.h
M Source/WTF/wtf/TZoneMalloc.h
R 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
R Source/WebKit/Shared/API/RegisterTZoneTypes.cpp
R 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/bmalloc/bmalloc.xcodeproj/project.pbxproj
M Source/bmalloc/bmalloc/BPlatform.h
M Source/bmalloc/bmalloc/ProcessCheck.h
M Source/bmalloc/bmalloc/ProcessCheck.mm
M Source/bmalloc/bmalloc/TZoneHeap.h
M Source/bmalloc/bmalloc/TZoneHeapInlines.h
M Source/bmalloc/bmalloc/TZoneHeapManager.cpp
M Source/bmalloc/bmalloc/TZoneHeapManager.h
A Source/bmalloc/bmalloc/TZoneLog.cpp
A Source/bmalloc/bmalloc/TZoneLog.h
M Tools/DumpRenderTree/mac/DumpRenderTree.mm
Log Message:
-----------
TZone update - Eliminate type registration, update seeding and add logging
https://bugs.webkit.org/show_bug.cgi?id=277383
rdar://132850563
Reviewed by Yusuke Suzuki.
Eliminated the need to register TZone annotated types. Did this by changing
the number of buckets per size class to be based
the size of the class and not the number of types in the size class. Changed
the seeding, for Darwin platforms, to use the
boot UUID and the name of the current process. These two changes allow for the
TZone infrastructure to be lazily initialized
as participating types are allocated. Added logging for TZone with output
either to stderr or os_log based upon the
setting of the TZONE_LOGGING environment variable. Most of the logging is
compile time turned off via the setting of the
TZoneHeapManager::verbose constant.
Eliminated several files and the passing of the seed from the command line.
This change has the TZone system turned off via the PlatformUsh.h macro
USE_TZONE_MALLOC being set to 0.
* Source/JavaScriptCore/API/tests/testapi.cpp:
* Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj:
* Source/JavaScriptCore/Sources.txt:
* Source/JavaScriptCore/assembler/testmasm.cpp:
(main):
* Source/JavaScriptCore/b3/air/testair.cpp:
(main):
* Source/JavaScriptCore/b3/testb3.h:
* Source/JavaScriptCore/b3/testb3_1.cpp:
(main):
* Source/JavaScriptCore/dfg/testdfg.cpp:
(main):
* Source/JavaScriptCore/jsc.cpp:
(main):
(jscmain):
* Source/JavaScriptCore/runtime/InitializeThreading.cpp:
(JSC::initialize):
* Source/JavaScriptCore/runtime/RegisterTZoneTypes.cpp: Removed.
* Source/JavaScriptCore/runtime/RegisterTZoneTypes.h: Removed.
* Source/JavaScriptCore/runtime/TZoneInit.cpp: Removed.
* Source/JavaScriptCore/runtime/TZoneInit.h: Removed.
* Source/JavaScriptCore/runtime/WeakGCSet.h:
* Source/JavaScriptCore/wasm/WasmMemory.cpp:
* Source/JavaScriptCore/wasm/WasmMemory.h:
* Source/WTF/WTF.xcodeproj/project.pbxproj:
* Source/WTF/wtf/CMakeLists.txt:
* Source/WTF/wtf/PlatformUse.h:
* Source/WTF/wtf/TZoneMalloc.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: Removed.
* Source/WebKit/Shared/API/RegisterTZoneTypes.h: Removed.
* Source/WebKit/Shared/EntryPointUtilities/Cocoa/AuxiliaryProcessMain.cpp:
(main):
* Source/WebKit/Sources.txt:
* Source/WebKit/WebKit.xcodeproj/project.pbxproj:
* Source/bmalloc/bmalloc.xcodeproj/project.pbxproj:
* Source/bmalloc/bmalloc/BPlatform.h:
* Source/bmalloc/bmalloc/ProcessCheck.h:
* Source/bmalloc/bmalloc/ProcessCheck.mm:
(bmalloc::ProcessNames::getAppName):
(bmalloc::ProcessNames::getProcessName):
(bmalloc::ProcessNames::getCString):
(bmalloc::ProcessNames::ProcessNames):
(bmalloc::ProcessNames::ensureInstance):
(bmalloc::ProcessNames::getInstance):
(bmalloc::ProcessNames::appName):
(bmalloc::ProcessNames::processName):
(bmalloc::ProcessNames::asCString):
(bmalloc::processNameString):
(bmalloc::gigacageEnabledForProcess):
(bmalloc::shouldProcessUnconditionallyUseBmalloc):
* Source/bmalloc/bmalloc/TZoneHeap.h:
(bmalloc::api::TZoneHeapBase::provideHeap):
(bmalloc::api::TZoneHeap::allocate):
* Source/bmalloc/bmalloc/TZoneHeapInlines.h:
* Source/bmalloc/bmalloc/TZoneHeapManager.cpp:
(bmalloc::api::dumpRegisterdTypesAtExit):
(bmalloc::api::TZoneHeapManager::init):
(bmalloc::api::TZoneHeapManager::isReady):
(bmalloc::api::TZoneHeapManager::dumpRegisterdTypes):
(bmalloc::api::TZoneHeapManager::ensureInstance):
(bmalloc::api::TZoneHeapManager::populateBucketsForSizeClass):
(bmalloc::api::TZoneHeapManager::heapRefForTZoneType):
(bmalloc::api::TZoneHeapManager::registerTZoneTypes): Deleted.
(bmalloc::api::TZoneHeapManager::closeRegistration): Deleted.
* Source/bmalloc/bmalloc/TZoneHeapManager.h:
(bmalloc::api::TZoneHeapManager::SizeAndAlign::hash):
(bmalloc::api::TZoneHeapManager::SizeAndAlign::operator< const):
(bmalloc::api::TZoneHeapManager::bucketCountForSizeClass):
(bmalloc::api::TZoneHeapManager::tzoneBucketForKey):
(bmalloc::api::TZoneHeapManager::bucketCountForTypeCount): Deleted.
* Source/bmalloc/bmalloc/TZoneLog.cpp: Added.
(bmalloc::api::TZoneLog::init):
(bmalloc::api::TZoneLog::getInstance):
(bmalloc::api::TZoneLog::log):
(bmalloc::api::TZoneLog::osLogWithLineBuffer):
(bmalloc::api::TZoneLog::ensureInstance):
* Source/bmalloc/bmalloc/TZoneLog.h: Renamed from
Source/WTF/wtf/TZoneMallocInitialization.h.
(bmalloc::api::TZoneLog::TZoneLog):
(bmalloc::api::TZoneLog::useStdErr):
(bmalloc::api::TZoneLog::useOSLog):
(bmalloc::api::TZoneLog::osLog const):
* Tools/DumpRenderTree/mac/DumpRenderTree.mm:
(DumpRenderTreeMain):
Canonical link: https://commits.webkit.org/281673@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