diff options
| author | Scott Gasch <[email protected]> | 2026-09-13 12:06:21 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2026-09-13 12:06:21 -0700 |
| commit | d2699c47d6d0abf0f018e5ba37d4f1bfe05ecd33 (patch) | |
| tree | e8d450b234aa7202a17484e02a82297f479ea74b /src/testrecogn.c | |
| parent | ddf932b885e08a47c88a66c3888f127f1c9d31c2 (diff) | |
Remove SystemAllocateMemory's hidden 4-byte tag-header scheme.
The HEAP/MMAP tag word written just before every allocated pointer (to
let SystemFreeMemory dispatch to free() vs munmap()) unconditionally
shifted every allocation 4 bytes off whatever alignment malloc actually
provided. The mmap path was permanently dead code (if (0), condition
commented out) -- malloc is the only allocator ever used -- so the tag
was pure overhead with no benefit, and it was silently defeating
g_pHashTable's deliberate 4-entries-per-cache-line (16 bytes x 4 = 64
bytes) layout: verified via lldb that the table was consistently
offset by exactly 4 bytes from a 64-byte boundary before this change,
and is now consistently 64-byte aligned across multiple runs.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01C9r36BydPnfpyYLFhkTo6d
Diffstat (limited to 'src/testrecogn.c')
0 files changed, 0 insertions, 0 deletions
