summary refs log tree commit diff stats
path: root/lib/system/genodealloc.nim
Commit message (Collapse)AuthorAgeFilesLines
* Genode: constrain `osTryAllocPages` to RAM quota (#6883)Emery Hemingway2017-12-141-0/+114
Genode software components all start with an explicit RAM resource quota which may or may not be upgraded during runtime by the parent process. With this patch `osTryAllocPages` will fail if allocation exceeds quotas set by the parent and the `osAllocPages` procedure will trigger a blocking request to the parent to increase quotas. The previous behavior could potentially block both procedures indefinitely for a quota upgrade rather than fail and trigger garbage collection. This patch also adds tracking of Genode dataspace mappings into the component address space so they can be detached and freed.