Является ли куча памяти в Linux непрерывной?Linux

Anonymous
Является ли куча памяти в Linux непрерывной?

Сообщение Anonymous »


I was looking at the man page for brk(2), and it said that it increases the program break therefore allocating more memory to the heap. However, the way that I understand it, heap memory isn't always completely virtually contiguous in the PROG_TEXT -> PROG_HEAP (prog break) -> PROG_STACK manner that it seems to describe. Is the program heap actually virtually contiguous? If not, how does brk(2) work in a way that's consistent with what's described on the man page?


Источник: https://stackoverflow.com/questions/781 ... contiguous

Вернуться в «Linux»