Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

brk

Name: Anonymous 2009-03-22 2:53

I just finished debugging a re-invention of malloc and free - obviously, because I'm changing the value of brk myself, I'm not using mmap or the stdlib malloc or anything silly like that. When I test the program with MY functions, the value of brk after free is the same as it was before malloc. However, using the stdlib malloc, the value of brk is 0x21000 larger after free than it was before malloc, even though I'm only allocating around 25kb in memory.

Can someone explain to me why the fuck that would make sense?

Name: Anonymous 2009-03-22 16:49

>>18
Why are you using a for loop you fuckin' retard.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List