[webkit-changes] [WebKit/WebKit] 66b628: Add a Loader malloc heap zone

Ryan Reno noreply at github.com
Wed Aug 23 15:22:41 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 66b6285e8f367770bb1acc584f8ff1f270259b26
      https://github.com/WebKit/WebKit/commit/66b6285e8f367770bb1acc584f8ff1f270259b26
  Author: Ryan Reno <rreno at apple.com>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M Source/WebCore/Headers.cmake
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/loader/ApplicationManifestLoader.h
    M Source/WebCore/loader/ContentFilter.h
    M Source/WebCore/loader/CrossOriginPreflightResultCache.h
    M Source/WebCore/loader/DocumentThreadableLoader.h
    M Source/WebCore/loader/FrameLoader.cpp
    M Source/WebCore/loader/FrameLoader.h
    M Source/WebCore/loader/HistoryController.h
    M Source/WebCore/loader/ImageLoader.h
    M Source/WebCore/loader/LinkPreloadResourceClients.h
    A Source/WebCore/loader/LoaderMalloc.cpp
    A Source/WebCore/loader/LoaderMalloc.h
    M Source/WebCore/loader/LocalFrameLoaderClient.h
    M Source/WebCore/loader/NavigationDisabler.h
    M Source/WebCore/loader/NavigationScheduler.cpp
    M Source/WebCore/loader/NavigationScheduler.h
    M Source/WebCore/loader/PolicyChecker.h
    M Source/WebCore/loader/ProgressTracker.cpp
    M Source/WebCore/loader/ProgressTracker.h
    M Source/WebCore/loader/ProgressTrackerClient.h
    M Source/WebCore/loader/ResourceLoadObserver.h
    M Source/WebCore/loader/ResourceTiming.h
    M Source/WebCore/loader/SubframeLoader.h
    M Source/WebCore/loader/SubresourceLoader.h
    M Source/WebCore/loader/TextTrackLoader.h
    M Source/WebCore/loader/ThreadableLoaderClient.h
    M Source/WebCore/loader/WorkerThreadableLoader.h
    M Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp
    M Source/WebCore/loader/appcache/ApplicationCacheGroup.h
    M Source/WebCore/loader/appcache/ApplicationCacheHost.h
    M Source/WebCore/loader/archive/ArchiveResourceCollection.h
    M Source/WebCore/loader/cache/CachedFontLoadRequest.h
    M Source/WebCore/loader/cache/CachedResource.h
    M Source/WebCore/loader/cache/CachedResourceLoader.h
    M Source/WebCore/loader/cache/CachedResourceRequestInitiatorTypes.h
    M Source/WebCore/loader/cache/CachedSVGDocumentReference.h
    M Source/WebCore/loader/cache/MemoryCache.h
    M Source/WebCore/loader/icon/IconLoader.h
    M Source/WebCore/loader/ios/LegacyPreviewLoader.h

  Log Message:
  -----------
  Add a Loader malloc heap zone
https://bugs.webkit.org/show_bug.cgi?id=260623
rdar://114340888

Reviewed by Brent Fulgham and Simon Fraser.

This adds a generic Loader allocator that fast malloc classes can use in
the loading subsystem. This will allow us to categorize classes with
WTF_MAKE_FAST_ALLOCATED_WITH_HEAP_IDENTIFIER into a loader malloc zone
without the need to make a zone for each class.

Use by including "LoaderMalloc.h" (if necessary) and replacing
WTF_MAKE_FAST_ALLOCATED with
WTF_MAKE_FAST_ALLOCATED_WITH_HEAP_IDENTIFIER(Loader) in your loader class.

* Source/WebCore/Headers.cmake:
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/loader/ApplicationManifestLoader.h:
* Source/WebCore/loader/ContentFilter.h:
* Source/WebCore/loader/CrossOriginPreflightResultCache.h:
* Source/WebCore/loader/DocumentThreadableLoader.h:
* Source/WebCore/loader/FrameLoader.cpp:
* Source/WebCore/loader/FrameLoader.h:
* Source/WebCore/loader/HistoryController.h:
* Source/WebCore/loader/ImageLoader.h:
* Source/WebCore/loader/LinkPreloadResourceClients.h:
* Source/WebCore/loader/LoaderMalloc.cpp: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
* Source/WebCore/loader/LoaderMalloc.h: Copied from Source/WebCore/loader/ProgressTrackerClient.h.
* Source/WebCore/loader/LocalFrameLoaderClient.h:
* Source/WebCore/loader/NavigationDisabler.h:
* Source/WebCore/loader/NavigationScheduler.cpp:
* Source/WebCore/loader/NavigationScheduler.h:
* Source/WebCore/loader/PolicyChecker.h:
* Source/WebCore/loader/ProgressTracker.cpp:
* Source/WebCore/loader/ProgressTracker.h:
* Source/WebCore/loader/ProgressTrackerClient.h:
* Source/WebCore/loader/ResourceLoadObserver.h:
* Source/WebCore/loader/ResourceTiming.h:
* Source/WebCore/loader/SubframeLoader.h:
* Source/WebCore/loader/SubresourceLoader.h:
* Source/WebCore/loader/TextTrackLoader.h:
* Source/WebCore/loader/ThreadableLoaderClient.h:
* Source/WebCore/loader/WorkerThreadableLoader.h:
* Source/WebCore/loader/appcache/ApplicationCacheGroup.cpp:
* Source/WebCore/loader/appcache/ApplicationCacheGroup.h:
* Source/WebCore/loader/appcache/ApplicationCacheHost.h:
* Source/WebCore/loader/archive/ArchiveResourceCollection.h:
* Source/WebCore/loader/cache/CachedFontLoadRequest.h:
* Source/WebCore/loader/cache/CachedResource.h:
* Source/WebCore/loader/cache/CachedResourceLoader.h:
* Source/WebCore/loader/cache/CachedResourceRequestInitiatorTypes.h:
* Source/WebCore/loader/cache/CachedSVGDocumentReference.h:
* Source/WebCore/loader/cache/MemoryCache.h:
* Source/WebCore/loader/icon/IconLoader.h:
* Source/WebCore/loader/ios/LegacyPreviewLoader.h:

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




More information about the webkit-changes mailing list