|
From: Julian S. <js...@ac...> - 2008-04-22 17:52:35
|
On Tuesday 22 April 2008 19:36, Bart Van Assche wrote: > On Mon, Apr 21, 2008 at 12:48 AM, Nicholas Nethercote > > <nj...@cs...> wrote: > > It seems ok to me. People have asked for this before. IIRC he only > > bothered to fill in the field that holds the total number of bytes, no? > > Since it's rare and poorly specified I'm not that worried by what > > Valgrind does... > > Apparently there is a "struct vg_mallinfo" declared in > pub_core_mallocfree.h. Shouldn't this structure be moved to files like > include/vki/vki-gnu-libc.h and include/vki/vki-aix-libc.h (neither > file already exists) ? The vki includes describe the kernel interface (that's what the "ki" stands for); they don't describe anything to do with libc. If the original bug reporter's program now works, I'd just leave it as it is now. As Nick says, mallinfo is pretty rare, and, I think, unportable. J |