Files
ladybird/Userland/Libraries/LibC
Andreas Kling 2d1a651e0a Kernel: Make purgeable memory a VMObject level concept (again)
This patch changes the semantics of purgeable memory.

- AnonymousVMObject now has a "purgeable" flag. It can only be set when
  constructing the object. (Previously, all anonymous memory was
  effectively purgeable.)

- AnonymousVMObject now has a "volatile" flag. It covers the entire
  range of physical pages. (Previously, we tracked ranges of volatile
  pages, effectively making it a page-level concept.)

- Non-volatile objects maintain a physical page reservation via the
  committed pages mechanism, to ensure full coverage for page faults.

- When an object is made volatile, it relinquishes any unused committed
  pages immediately. If later made non-volatile again, we then attempt
  to make a new committed pages reservation. If this fails, we return
  ENOMEM to userspace.

mmap() now creates purgeable objects if passed the MAP_PURGEABLE option
together with MAP_ANONYMOUS. anon_create() memory is always purgeable.
2021-07-25 17:28:05 +02:00
..
2021-06-06 22:16:11 +02:00
2021-05-30 19:37:32 +02:00
2021-07-15 11:16:58 +02:00
2021-07-17 13:00:33 +02:00
2021-05-08 19:14:21 +02:00
2021-05-30 08:41:17 +02:00
2021-07-01 12:05:59 +02:00
2021-05-14 23:32:10 +02:00
2021-05-30 14:56:50 +01:00
2021-06-21 12:21:03 +02:00
2021-06-04 10:39:41 +02:00
2021-05-25 17:36:02 +02:00
2021-07-05 23:30:15 +02:00
2021-07-05 23:30:15 +02:00
2021-05-30 14:56:50 +01:00
2021-07-19 16:24:15 +02:00
2021-07-19 16:24:15 +02:00