Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0cdb20ed4dec7b1f38dbc0ef0e02530068746f07
      
https://github.com/WebKit/WebKit/commit/0cdb20ed4dec7b1f38dbc0ef0e02530068746f07
  Author: Marcus Plutowski <[email protected]>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M Source/bmalloc/bmalloc/Allocator.cpp
    M Source/bmalloc/bmalloc/Cache.cpp
    M Source/bmalloc/bmalloc/Deallocator.cpp
    M Source/bmalloc/bmalloc/Environment.cpp
    M Source/bmalloc/bmalloc/Environment.h
    M Source/bmalloc/bmalloc/Gigacage.cpp
    M Source/bmalloc/bmalloc/Heap.cpp
    M Source/bmalloc/bmalloc/IsoMallocFallback.cpp
    M Source/bmalloc/bmalloc/IsoTLS.cpp
    M Source/bmalloc/bmalloc/IsoTLSInlines.h
    M Source/bmalloc/bmalloc/Scavenger.cpp
    M Source/bmalloc/bmalloc/SystemHeap.cpp
    M Source/bmalloc/bmalloc/SystemHeap.h
    M Source/bmalloc/bmalloc/TZoneHeapManager.cpp
    M Source/bmalloc/bmalloc/bmalloc.cpp
    M Source/bmalloc/bmalloc/bmalloc.h
    M Source/bmalloc/libpas/src/libpas/bmalloc_heap_config.c
    M Source/bmalloc/libpas/src/libpas/pas_deallocate.c
    M Source/bmalloc/libpas/src/libpas/pas_deallocate.h
    M Source/bmalloc/libpas/src/libpas/pas_local_allocator_inlines.h
    M Source/bmalloc/libpas/src/libpas/pas_system_heap.h
    M Source/bmalloc/libpas/src/libpas/pas_thread_local_cache.c
    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_reallocate.h

  Log Message:
  -----------
  [bmalloc] Make SystemHeap enabled but unused by default
https://bugs.webkit.org/show_bug.cgi?id=302340
rdar://164497152

Reviewed by Keith Miller.

Previously, libpas would delegate all allocations from the
bmalloc heap to the bmalloc SystemHeap whenever the SystemHeap was
enabled. In preparation for guard-objects, we will want to be able to
use the SystemHeap for a subset of allocations without turning it on for
the rest. This requires us to separate the notion of 'enablement' from
that of 'using it to replace libpas for bmalloc allocations', which is
what this patch does.

Currently, the SystemHeap is always enabled, but is only used in the
same conditions that would have previously enabled it.
One new envvar has been added to configure this:
setting `WebKitSystemHeapOverrideEnablement=0` will disable the
SystemHeap entirely.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to