Re: How does malloc tell the kernel to allocate more memory?

2002-12-08 Thread Heinrich du Toit
Joseph D. Wagner wrote: I'm trying to write a tracer on memory allocation, and I'm having a little trouble figuring this out. At some point, malloc has to call the kernel to tell it to allocate more memory for this user process, right? I can't figure out which function malloc calls, or where in

RE: How does malloc tell the kernel to allocate more memory? -- CORRECTION

2002-12-08 Thread Joseph D. Wagner
>> I'm looking at glib-2.3.1 to try and find my answers. After >> all, that's where malloc is defined, right? > It's in glibc (GNU libc), not glib (the GNOME utility library). Sorry, I meant to say glibc. I double checked. I am using glibc-2.3.1. Joseph Wagner - To unsubscribe from this list

Re: How does malloc tell the kernel to allocate more memory?

2002-12-08 Thread Glynn Clements
Joseph D. Wagner wrote: > I'm trying to write a tracer on memory allocation, and I'm having a little > trouble figuring this out. > > At some point, malloc has to call the kernel to tell it to allocate more > memory for this user process, right? I can't figure out which function > malloc calls,

Re: How does malloc tell the kernel to allocate more memory?

2002-12-08 Thread Boris Bezlaj
On Sun, Dec 08, 2002 at 12:46:57PM -0600, Joseph D. Wagner wrote: > I'm trying to write a tracer on memory allocation, and I'm having a little > trouble figuring this out. You sure this has not been done before? > > At some point, malloc has to call the kernel to tell it to allocate more > memory

How does malloc tell the kernel to allocate more memory?

2002-12-08 Thread Joseph D. Wagner
I'm trying to write a tracer on memory allocation, and I'm having a little trouble figuring this out. At some point, malloc has to call the kernel to tell it to allocate more memory for this user process, right? I can't figure out which function malloc calls, or where in the code (line number) it