还记得系统中断点吗?该位置是进程映射的内存边界。
Remember the system break, the location that is the edge of mapped memory for the process?
sbrk根据参数中给出的字节数移动当前系统中断点,然后返回新的系统中断点。
SBRK moves the current system break by the number of bytes in its argument, and then returns the new system break.
如前所述,被映射的内存的边界(最后一个有效地址)常被称为系统中断点或者当前中断点。
As mentioned above, the edge of mapped memory — last valid address — is often known as the system break or the current break.
由于它对系统中断点(一个全局变量)进行操作,所以它不能与其他分配程序或者mmap一起使用。
Since it operates on the system break (a global variable), it cannot coexist with any other allocator or with mmap.
因此,当加载一个进程时,它会得到一个取决于某个称为系统中断点(systembreak)的特定地址的初始内存分配。
Therefore, when a process loads, it gets an initial allocation of memory up to a certain address, called the system break.
因此,当加载一个进程时,它会得到一个取决于某个称为系统中断点(systembreak)的特定地址的初始内存分配。
Therefore, when a process loads, it gets an initial allocation of memory up to a certain address, called the system break.
应用推荐