mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 15:02:25 +00:00
9a65e4f607
This patch was back ported from upstream Mesa and generalizes the memory management of buffer objects used by the binder. Before this patch the binder was treated as a special case where buffer objects were allocated with a simple "next block or wrap" allocator. With this commit the binder now uses the vm_heap allocators as done by all other buffer allocations which leads to issues with reference counting and object destruction being resolved. Original commit message: We're moving towards a path where all contexts share the same virtual memory - because this will make implementing vm_bind much easier - , and to achieve that we need to rework the binder memzone. As it is, different contexts will choose overlapping addresses. So in this patch we adjust the Binder to be 1GB - per Ken's suggestion - and use a real vma_heap for it. As a bonus the code gets simpler since it just reuses the same pattern we already have for the other memzones.
2 lines
41 B
Plaintext
2 lines
41 B
Plaintext
ef717b035d6a41d9921589756bbc30f07f0bf515
|