mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-11-11 14:47:39 +00:00
Replace Linux HAL's separately allocated map nodes with bounded owned storage while preserving its count/find/index/iteration/clear interface. BUSY polling now reads handles retained by the transport object's memory lock instead of depending on the capture worker's allocator arena. Revert broad anonymous-map admission, which exceeded the device's existing 48-MiB admission budget. Keep main-heap/runtime/stack admission bounded. Verify an owner allocated on the main thread and initialized on a worker has locked handle storage, plus lookup, replacement, capacity and reuse. Validation: focused capture-memory/handle regression passed; clang-format 14 and staged diff checks passed. GitNexus reports Linux HAL class impact as medium (six direct dependencies); its broad pinMode graph is critical, so that function implementation and its callers remain unchanged.