1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

Revert "Kernel: Allocate shared memory regions immediately"

This reverts commit fe6b3f99d1.
This commit is contained in:
Tom 2021-01-02 10:16:39 -07:00 committed by Andreas Kling
parent 4bc33ee3ae
commit e3190bd144
3 changed files with 2 additions and 8 deletions

View file

@ -52,7 +52,7 @@ int Process::sys$shbuf_create(int size, void** buffer)
return -EINVAL;
size = PAGE_ROUND_UP(size);
auto vmobject = AnonymousVMObject::create_with_size(size, AllocationStrategy::AllocateNow);
auto vmobject = AnonymousVMObject::create_with_size(size, AllocationStrategy::Reserve);
if (!vmobject)
return -ENOMEM;