(C) how does a heap allocator handle a 4-byte block header, while only returning addresses that are

Posted by hatorade on Stack Overflow See other posts from Stack Overflow or by hatorade
Published on 2010-06-01T03:08:13Z Indexed on 2010/06/01 3:13 UTC
Read the original article Hit count: 239

Filed under:
|

It doesn't seem to make sense, unless we just ignore any potential excess space at the beginning of a segment, and then have the first allocated chunk be at the first multiple of 8 (with its corresponding first header being that address -4). This would leave however many bytes before that unused. Is that what's generally done?

© Stack Overflow or respective owner

Related posts about c

    Related posts about heapalloc