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:
parent
4bc33ee3ae
commit
e3190bd144
3 changed files with 2 additions and 8 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue