VirtualBox

Changeset 2035 in kBuild for trunk


Ignore:
Timestamp:
Nov 3, 2008 10:28:15 AM (16 years ago)
Author:
bird
Message:

misc.c: enabled the glibc heap stats.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/misc.c

    r2030 r2035  
    2626# ifdef __APPLE__
    2727#  include <malloc/malloc.h>
     28# endif
     29# if defined(__GLIBC__)
     30#  include <malloc.h>
    2831# endif
    2932#endif
     
    13921395
    13931396   /* XVID2/XPG mallinfo (displayed per GLIBC documentation).  */
    1394 # if 0 && defined(__GLIBC__) /* XXX: finish on linux, check older glibc versions. */
     1397# if defined(__GLIBC__)
    13951398  struct mallinfo m;
    13961399
    13971400  m = mallinfo();
    13981401  printf (_("\n# CRT Heap: %d bytes in use,  %d bytes free\n"),
    1399           m.uordblks, s.fordblks);
     1402          m.uordblks, m.fordblks);
    14001403
    14011404  printf (_("#           # free chunks=%d,  # fastbin blocks=%d\n"),
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette