But I am curious why the question is important. The concept of "heap" is just an abstraction for programmers; at the level of the process and OS, there are only mappings. There obviously has to be an anonymous mapping of about that size at that address to accommodate your
BIG_BAD_BLOCK
, so the question just seems to be about the tag
[heap]
that the kernel includes in
/proc/PID/maps
. The tag seems to be included based on some heuristic that, as above, is mainly for the benefit of the programmer, and AFAIK has no effect on the actual behavior of the program. —
Nate Eldredge 28 secs ago