|
From: Nicholas N. <nj...@ca...> - 2004-06-24 14:20:24
|
On Thu, 24 Jun 2004, Nicholas Nethercote wrote: >>> - new thread stacks >>> - brk() allocations >> >> No, these grow upwards from where brk() would normally allocate memory. > > Are you sure? > > The call stack for new thread stacks is: > > do__apply_in_new_thread() calls > VG_(client_alloc)() which calls > VG_(mmap)[CLIENT,FIXED] to allocate the memory I stand by this one, but maybe your text above wasn't questioning this. > The call stack for brk() allocations is: > > PRE(brk) calls > do_brk() which calls > VG_(mmap)[CLIENT,FIXED] to allocate the memory > > VG_(mmap)[CLIENT,FIXED] allocates in the client-seg-map area. Whoops; I was wrong, you're right, brk() allocations go where they normally would, just above the main executable. N |