Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 162e30c5ee9f92440b781a57d6aaba663cc90fa5
https://github.com/WebKit/WebKit/commit/162e30c5ee9f92440b781a57d6aaba663cc90fa5
Author: Marcus Plutowski <[email protected]>
Date: 2025-11-20 (Thu, 20 Nov 2025)
Changed paths:
M Source/bmalloc/libpas/src/libpas/pas_mte_config.c
Log Message:
-----------
[libpas] Log libpas configuration when LibpasMallocReportConfig=1
https://bugs.webkit.org/show_bug.cgi?id=302473
rdar://164639889
Reviewed by Yijia Huang.
When LibpasMallocReportConfig=1 is set, libpas will dump
a summary of its main configurations (MTE, scavenger timings,
object-size bounds, runtime-heap-configs, etc.) to stderr.
The dump will currently look something like the following:
```
jsc(76428,0x103) malloc: libpas config:
Deallocation Log (Max Entries, Max Bytes): 100, 50000B
Scavenger (Period, Deep-Sleep Timeout, Epoch-Delta): 100.00ms,
10000.00ms, 600000000
MTE (Enabled/Mode-Bits/Tagging-Rate/Medium-Enabled/Lockdown/Hardened):
(0, 0, 0, 0, 0, 0)
Using System Heap: 0
Heap-Config bmalloc:
Page Configs (Enabled/MTE Taggable, Static Max Obj Size):
Small Segregated: 1/1, 1616B
Medium Segregated: 1/1, 12800B
Small Bitfit: 1/1, 1600B
Medium Bitfit : 1/1, 12800B
Marge Bitfit : 1/0, 417792B
Runtime Heap Config Size-Maximums (Segregated, Bitfit, Baseline
Dir, No-View-Cache Dir):
Flex: 4294967295B, 0B, 0B, 4294967295B
Intrinsic: 4294967295B, 4294967295B, 0B, 0B
Typed: 4294967295B, 0B, 0B, 4294967295B
Primitive: 4294967295B, 4294967295B, 0B, 4294967295B
Heap-Config jit:
Page Configs (Enabled/MTE Taggable, Static Max Obj Size):
Small Segregated: 1/0, 1632B
Medium Segregated: 0/0, 0B
Small Bitfit: 1/0, 1012B
Medium Bitfit : 1/0, 64768B
Marge Bitfit : 0/0, 0B
Runtime Heap Config Size-Maximums (Segregated, Bitfit, Baseline
Dir, No-View-Cache Dir):
Flex: 2000B, 4294967295B, 0B, 0B
Heap-Config utility:
Page Configs (Enabled/MTE Taggable, Static Max Obj Size):
Small Segregated: 1/0, 1400B
Medium Segregated: 0/0, 0B
Small Bitfit: 0/0, 0B
Medium Bitfit : 0/0, 0B
Marge Bitfit : 0/0, 0B
```
Along with some ifdefs to enable logging for the iso-heap-config in the
case that that's actually compiled in (which currently we do not do).
Canonical link: https://commits.webkit.org/303347@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications