3 ms·
If the array is large enough to span a page, and the memory was obtained from the system with mmap, you can extend it with mremap, yes. https://man7.org/linux/
by ncruces 2y ago
If the array is large enough to span a page, and the memory was obtained from the system with mmap, you can extend it with mremap, yes.
https://man7.org/linux/man-pages/man2/mremap.2.html https://man7.org/linux/man-pages/man2/mremap.2.html