Files
reims-vgpu/guest/bundle/src
Anees Iqbal f4ae62647f 🐛 Pick a heap outside Private blocks at its own alignment, as before
Guest-visible against f180bde6f only: a device heap picked in the context's
own range (no Private block source, or a take refused) lies where any pick
there does again, at the alignment asked and the 32 KiB granule, not at a
multiple of 256 KiB. Against development, only heaps in Private blocks move:
they start at a multiple of 256 KiB from their block's first byte.

The 256 KiB serves rt's binding of a heap's textures at their offset in a
Private block's memory; a heap outside the blocks is a block of its own on rt
and binds at its own base, so the pad bought nothing there, and it broke
test_addresses_reused_after_destroy: a freed heap's span joined the pad's free
bytes below it, so the next pick of that span lay below the heap's old
address. allocPrivateAddress takes the block-only alignment as `blockAlign`
in place of a flag, and falls back to allocAddress at the caller's alignment.
2026-11-19 07:52:55 -08:00
..