malloc returning high memory addresses with pthread_create
I observed a behavior with malloc returning high memory addresses and
I'm wondering if someone could give me some insight into why this
The attached program sets the M_MMAP_MAX threshold to 0 (ie disabling
the use of mmap by malloc), spawns a thread which simply allocates and
frees 4KB chunk of memory. Now, according to whether both threads
(main thread and the spawned thread) execute concurrently or not, I
see a difference in the values of the pointers returned.