Skip to content

Fix exclusive arena allocation across child arenas - #1404

Closed
OscarTHZhang wants to merge 1 commit into
microsoft:dev3from
OscarTHZhang:OscarTHZhang/fix-arena-iteration
Closed

OscarTHZhang wants to merge 1 commit into
microsoft:dev3from
OscarTHZhang:OscarTHZhang/fix-arena-iteration

Conversation

@OscarTHZhang

Copy link
Copy Markdown
Contributor

Search child arenas after the requested parent arena is exhausted, allowing exclusive heaps to use managed memory areas larger than 16 GiB. Add a lightweight regression test covering a 24 GiB arena in Debug and Release builds.

@OscarTHZhang

OscarTHZhang commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Daan (@daanx) This is fixing #1403

@daanx

Copy link
Copy Markdown
Collaborator

Thanks for the PR! However, I don't think it was quite right as we cannot assume children necessarily get indices following the parent. I pushed a fix and included your test in the test-api. Hope that's ok :-)

@will-extrahop

Copy link
Copy Markdown

Just to nitpick, the issue was not specific to the arena being exclusive, but rather the heap specifying a particular arena, right?

@daanx

Copy link
Copy Markdown
Collaborator

Just to nitpick, the issue was not specific to the arena being exclusive, but rather the heap specifying a particular arena, right?

Yes, the heap specified a particular arena and the search would quite too soon without looking at all potential "child" arenas (if an arena is > 16 GiB it gets split in a parent and child arenas).
If there are other issues, let me know.

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.

3 participants