[webkit-changes] [WebKit/WebKit] ce0c25: Profile allocations and track allocation mode in l...

David Degazio noreply at github.com
Thu Mar 7 16:07:15 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ce0c25336f5320048b444ac8300efec568b437d5
      https://github.com/WebKit/WebKit/commit/ce0c25336f5320048b444ac8300efec568b437d5
  Author: David Degazio <d_degazio at apple.com>
  Date:   2024-03-07 (Thu, 07 Mar 2024)

  Changed paths:
    M Source/WTF/wtf/FastMalloc.cpp
    M Source/WTF/wtf/Gigacage.cpp
    M Source/WTF/wtf/JSValueMalloc.cpp
    M Source/WTF/wtf/TZoneMalloc.h
    M Source/WTF/wtf/TZoneMallocInlines.h
    M Source/bmalloc/CMakeLists.txt
    M Source/bmalloc/bmalloc.xcodeproj/project.pbxproj
    M Source/bmalloc/bmalloc/BMalloced.h
    A Source/bmalloc/bmalloc/CompactAllocationMode.h
    M Source/bmalloc/bmalloc/IsoHeap.cpp
    M Source/bmalloc/bmalloc/IsoHeap.h
    M Source/bmalloc/bmalloc/IsoMallocFallback.cpp
    M Source/bmalloc/bmalloc/IsoMallocFallback.h
    M Source/bmalloc/bmalloc/IsoTLSInlines.h
    M Source/bmalloc/bmalloc/TZoneHeap.cpp
    M Source/bmalloc/bmalloc/TZoneHeap.h
    M Source/bmalloc/bmalloc/TZoneHeapInlines.h
    M Source/bmalloc/bmalloc/TZoneHeapManager.cpp
    M Source/bmalloc/bmalloc/bmalloc.cpp
    M Source/bmalloc/bmalloc/bmalloc.h
    M Source/bmalloc/bmalloc/mbmalloc.cpp
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap.c
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap.h
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h
    M Source/bmalloc/libpas/src/libpas/jit_heap.c
    A Source/bmalloc/libpas/src/libpas/pas_allocation_mode.h
    M Source/bmalloc/libpas/src/libpas/pas_bitfit_allocator_inlines.h
    M Source/bmalloc/libpas/src/libpas/pas_bitfit_page_config.h
    M Source/bmalloc/libpas/src/libpas/pas_bitfit_page_config_inlines.h
    M Source/bmalloc/libpas/src/libpas/pas_bitfit_page_inlines.h
    M Source/bmalloc/libpas/src/libpas/pas_compact_bootstrap_free_heap.c
    M Source/bmalloc/libpas/src/libpas/pas_compact_heap_reservation.c
    M Source/bmalloc/libpas/src/libpas/pas_config.h
    M Source/bmalloc/libpas/src/libpas/pas_create_basic_heap_page_caches_with_reserved_memory.c
    M Source/bmalloc/libpas/src/libpas/pas_debug_heap.h
    M Source/bmalloc/libpas/src/libpas/pas_heap_config.h
    M Source/bmalloc/libpas/src/libpas/pas_heap_config_inlines.h
    M Source/bmalloc/libpas/src/libpas/pas_immortal_heap.c
    M Source/bmalloc/libpas/src/libpas/pas_large_heap.c
    M Source/bmalloc/libpas/src/libpas/pas_large_heap.h
    M Source/bmalloc/libpas/src/libpas/pas_local_allocator_inlines.h
    M Source/bmalloc/libpas/src/libpas/pas_page_header_table.c
    M Source/bmalloc/libpas/src/libpas/pas_page_header_table.h
    M Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c
    M Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.h
    M Source/bmalloc/libpas/src/libpas/pas_segregated_heap.c
    M Source/bmalloc/libpas/src/libpas/pas_segregated_page_config.h
    M Source/bmalloc/libpas/src/libpas/pas_segregated_page_config_inlines.h
    M Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c
    M Source/bmalloc/libpas/src/libpas/pas_try_allocate.h
    M Source/bmalloc/libpas/src/libpas/pas_try_allocate_array.h
    M Source/bmalloc/libpas/src/libpas/pas_try_allocate_common.h
    M Source/bmalloc/libpas/src/libpas/pas_try_allocate_intrinsic.h
    M Source/bmalloc/libpas/src/libpas/pas_try_allocate_primitive.h
    M Source/bmalloc/libpas/src/libpas/pas_try_reallocate.h
    M Source/bmalloc/libpas/src/libpas/pas_utility_heap.c
    M Source/bmalloc/libpas/src/libpas/pas_utils.h

  Log Message:
  -----------
  Profile allocations and track allocation mode in libPAS
https://bugs.webkit.org/show_bug.cgi?id=270592
rdar://122419407

Reviewed by Michael Saboff.

Adds more invocations of PAS_PROFILE to different allocation pathways
in libPAS, and passes them a new pas_allocation_mode discriminator
that threads through whether or not the allocation is for a compactible
type from the bmalloc/WTF layer.

* Source/WTF/wtf/FastMalloc.cpp:
* Source/WTF/wtf/Gigacage.cpp:
* Source/WTF/wtf/JSValueMalloc.cpp:
* Source/bmalloc/bmalloc.xcodeproj/project.pbxproj:
* Source/bmalloc/bmalloc/CompactAllocationMode.h:
* Source/bmalloc/bmalloc/IsoHeap.cpp:
* Source/bmalloc/bmalloc/IsoHeap.h:
* Source/bmalloc/bmalloc/IsoMallocFallback.cpp:
* Source/bmalloc/bmalloc/IsoMallocFallback.h:
* Source/bmalloc/bmalloc/bmalloc.cpp:
* Source/bmalloc/bmalloc/bmalloc.h:
* Source/bmalloc/libpas/src/libpas/bmalloc_heap.c:
* Source/bmalloc/libpas/src/libpas/bmalloc_heap.h:
* Source/bmalloc/libpas/src/libpas/bmalloc_heap_inlines.h:
* Source/bmalloc/libpas/src/libpas/jit_heap.c:
* Source/bmalloc/libpas/src/libpas/pas_allocation_mode.h:
* Source/bmalloc/libpas/src/libpas/pas_bitfit_allocator_inlines.h:
* Source/bmalloc/libpas/src/libpas/pas_bitfit_page_config.h:
* Source/bmalloc/libpas/src/libpas/pas_bitfit_page_config_inlines.h:
* Source/bmalloc/libpas/src/libpas/pas_bitfit_page_inlines.h:
* Source/bmalloc/libpas/src/libpas/pas_compact_bootstrap_free_heap.c:
* Source/bmalloc/libpas/src/libpas/pas_compact_heap_reservation.c:
* Source/bmalloc/libpas/src/libpas/pas_config.h:
* Source/bmalloc/libpas/src/libpas/pas_config.h:
* Source/bmalloc/libpas/src/libpas/pas_create_basic_heap_page_caches_with_reserved_memory.c:
* Source/bmalloc/libpas/src/libpas/pas_debug_heap.h:
* Source/bmalloc/libpas/src/libpas/pas_heap_config.h:
* Source/bmalloc/libpas/src/libpas/pas_heap_config_inlines.h:
* Source/bmalloc/libpas/src/libpas/pas_immortal_heap.c:
* Source/bmalloc/libpas/src/libpas/pas_large_heap.c:
* Source/bmalloc/libpas/src/libpas/pas_large_heap.h:
* Source/bmalloc/libpas/src/libpas/pas_local_allocator_inlines.h:
* Source/bmalloc/libpas/src/libpas/pas_page_header_table.c:
* Source/bmalloc/libpas/src/libpas/pas_page_header_table.h:
* Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.c:
* Source/bmalloc/libpas/src/libpas/pas_probabilistic_guard_malloc_allocator.h:
* Source/bmalloc/libpas/src/libpas/pas_segregated_heap.c:
* Source/bmalloc/libpas/src/libpas/pas_segregated_page_config.h:
* Source/bmalloc/libpas/src/libpas/pas_segregated_page_config_inlines.h:
* Source/bmalloc/libpas/src/libpas/pas_segregated_size_directory.c:
* Source/bmalloc/libpas/src/libpas/pas_try_allocate.h:
* Source/bmalloc/libpas/src/libpas/pas_try_allocate_array.h:
* Source/bmalloc/libpas/src/libpas/pas_try_allocate_common.h:
* Source/bmalloc/libpas/src/libpas/pas_try_allocate_intrinsic.h:
* Source/bmalloc/libpas/src/libpas/pas_try_allocate_primitive.h:
* Source/bmalloc/libpas/src/libpas/pas_try_reallocate.h:
* Source/bmalloc/libpas/src/libpas/pas_utility_heap.c:
* Source/bmalloc/libpas/src/libpas/pas_utils.h:

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