Skip to content

memory: allocate speed test buffers with AllocAbs#41

Merged
reinauer merged 1 commit into
mainfrom
memory
May 30, 2026
Merged

memory: allocate speed test buffers with AllocAbs#41
reinauer merged 1 commit into
mainfrom
memory

Conversation

@reinauer
Copy link
Copy Markdown
Owner

The per-region memory benchmark forced AllocMem() into one region by
temporarily rewriting Exec's global MemList. That can corrupt or detach
manually-added memory regions, as reported on PP&S 2000/040 RAM.

Find the live MemHeader for the selected region, choose a free chunk,
and allocate it with AllocAbs() instead. This keeps the benchmark
buffer owned by Exec without mutating the allocator list.

The per-region memory benchmark forced AllocMem() into one region by
temporarily rewriting Exec's global MemList. That can corrupt or detach
manually-added memory regions, as reported on PP&S 2000/040 RAM.

Find the live MemHeader for the selected region, choose a free chunk,
and allocate it with AllocAbs() instead. This keeps the benchmark
buffer owned by Exec without mutating the allocator list.
@reinauer reinauer merged commit 5e677c1 into main May 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant