2 ms·
Have a separate allocation pool for such objects that uses the mlock syscall on memory ranges it allocates from the OS. As you note, you can't just mlock memor
by loeg 8y ago
Have a separate allocation pool for such objects that uses the mlock syscall on memory ranges it allocates from the OS.
As you note, you can't just mlock memory handed out by the ordinary allocator, as you never know when it will be free to munlock.