Files
VIctory/apps
T
MarvisandClaude Opus 5.5 5c4c685c45 victory: the exe's bytes are dropped once the image is mapped
What was wrong: `run` kept the exe as read (114 MB) and its patched copy
(another 114 MB) alive until the title exited, though nothing reads them
after the loader writes the patched copy and maps it: ~228 MB of the
Rust heap for the whole run (large-allocation stacks of run textures8).

What changed: the read bytes are a temporary of `prepare`, and the
prepared image is dropped right after `load`. The mapped image, its
path (`GetModuleFileName`), title DLLs and crash reports come from the
loaded image and the files, not from these buffers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5c4c685c45 · 2026-11-25 07:56:02 +01:00
History
..