Anonymous Page Cache: Difference between revisions

Line 5: Line 5:


== Implementation ==
== Implementation ==
APC maintains a map to anonymous pages, which is a subset of the virtual memory map, by intercepting calls to the mmap() family. When triggered, it temporarily marks those pages read-only before swapping out to prevent the memory from altered. When the pages are written while being swapped out, the SIGSEGV handler is invoked to cancel the job and reset the memory block which is being swapped out.


== References ==
== References ==
* https://bugzilla.mozilla.org/show_bug.cgi?id=899493
* https://bugzilla.mozilla.org/show_bug.cgi?id=899493
* https://groups.google.com/forum/#!topic/mozilla.dev.b2g/QNLuHylCOlU
* https://groups.google.com/forum/#!topic/mozilla.dev.b2g/QNLuHylCOlU
Confirmed users
32

edits