fix info reported by memory manager under DL_MALLOC and SYSTEM_MALLOC

git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1635 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
vsc
2006-05-18 16:33:05 +00:00
parent ef80f1df70
commit ee78d90bb9
11 changed files with 77 additions and 23 deletions

View File

@@ -12,7 +12,7 @@
* Last rev: *
* mods: *
* comments: allocating space *
* version:$Id: alloc.c,v 1.84 2006-05-16 18:37:30 vsc Exp $ *
* version:$Id: alloc.c,v 1.85 2006-05-18 16:33:04 vsc Exp $ *
*************************************************************************/
#ifdef SCCS
static char SccsId[] = "%W% %G%";
@@ -304,6 +304,16 @@ Yap_AllocHole(UInt actual_request, UInt total_size)
{
}
#if HAVE_MALLINFO
UInt
Yap_givemallinfo(void)
{
struct mallinfo mi = mallinfo();
return mi.uordblks;
}
#endif
#else
#if HAVE_SNPRINTF