mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-11-12 15:17:42 +00:00
GPIO initialization occurs on the capture worker, whose allocator arena is a private anonymous mapping rather than the main process heap. Include readable private writable anonymous mappings in the existing bounded admission, while retaining the current-stack window and 48-MiB ceiling. Run the map-node residency regression inside a real worker thread. This fails even with main-heap locking and passes with anonymous arena locking. Validation: worker-thread capture memory regression passed; clang-format14 and staged diff checks passed. GitNexus change analysis was run but this inline class is absent from the index; direct source diff remains limited to capture memory admission and its regression.
platform/linux/common
Shared Linux-safe code used by both the desktop simulator and the Pi OS device shell.
This layer is the neutral meeting point for:
- tiny render primitives
- simulator/device-agnostic app behavior
- Linux-safe surface presentation contracts
- Linux implementations of shared
platform::ui::*runtime contracts such as settings, time, screen timeout, and generic device state - SQLite-backed Linux runtime state shared by simulator/device/uConsole shells
- Linux map tile cache plumbing for online fetch plus local XYZ file cache
- the shared Linux boot/menu shell session used by both the simulator and the thin framebuffer device shell
Code should move here only when it is genuinely shared between apps/linux_sim
and apps/linux_rpi.