Skip to content

memory: allocate speed test buffers with AllocAbs#41

Open
reinauer wants to merge 1 commit into
mainfrom
memory
Open

memory: allocate speed test buffers with AllocAbs#41
reinauer wants to merge 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.
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