> I ran into a weird issue today while playing around with pmap. In an > effort to better understand the memory organization of a process, I > created a test program [1] to malloc() memory, and to print the address > where the memory is located. When I run my test program, I get the > following output: ...
As Mike says, the tool only breaks things down on page boundaries, so you don't get a completely accurate picture (but it's close).
The start of the heap is documented in the man page end(3C) which has a good description of _end; this is set at the end of the uninitialized data segment which, by default, is where libc sets the starting brk() value.
- Eric -- Eric Lowe Solaris Kernel Development Austin, Texas Sun Microsystems. We make the net work. x40577/+1(512)366-9080 _______________________________________________ opensolaris-code mailing list [email protected] https://opensolaris.org:444/mailman/listinfo/opensolaris-code
