Kernel+LibC: Make all SharedBuffers purgeable (default: non-volatile)

This patch makes SharedBuffer use a PurgeableVMObject as its underlying
memory object.

A new syscall is added to control the volatile flag of a SharedBuffer.
This commit is contained in:
Andreas Kling 2019-12-09 20:06:47 +01:00
commit 0317ca5ccc
Notes: sideshowbarker 2024-07-19 10:54:28 +09:00
6 changed files with 50 additions and 5 deletions

View file

@ -146,7 +146,8 @@ typedef u32 socklen_t;
__ENUMERATE_SYSCALL(set_thread_name) \
__ENUMERATE_SYSCALL(get_thread_name) \
__ENUMERATE_SYSCALL(madvise) \
__ENUMERATE_SYSCALL(purge)
__ENUMERATE_SYSCALL(purge) \
__ENUMERATE_SYSCALL(set_shared_buffer_volatile)
namespace Syscall {