然而,有人指出,在我的例子中,brk()已经超过了最大堆。 我需要在一个进行测试的平台上运行我的代码(所以我看不到测试)。obj_metadata));} 在测试时,我得到了这个错误: Test "malloc-orders" exited with error: Assertion "addr <= heap + max_brk_size" at
test_framework/intercept.c:38 failed: New brk 0x7fbe6f4c7fe0
mov rax, 0x2d ;linux system call for brkmov [brk_firstLocationfirst position in the heap will be returned in rax thus i save the first loaction in a varable called brk_firstLocationmov rax, 0x2d ;linux system call for brkint 0x80