summaryrefslogtreecommitdiff
path: root/tests/lop/compare_lop.cpp
diff options
context:
space:
mode:
authorScott Gasch <[email protected]>2026-09-13 12:06:21 -0700
committerScott Gasch <[email protected]>2026-09-13 12:06:21 -0700
commitd2699c47d6d0abf0f018e5ba37d4f1bfe05ecd33 (patch)
treee8d450b234aa7202a17484e02a82297f479ea74b /tests/lop/compare_lop.cpp
parentddf932b885e08a47c88a66c3888f127f1c9d31c2 (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 'tests/lop/compare_lop.cpp')
0 files changed, 0 insertions, 0 deletions