NAME
CHECK_FOR_HEAP_OVERRUNS - (Debugging MACRO) Checks that memory was not overrun
SYNOPSIS
#include "l/l_sys_mal.h"
Example compile flags (system dependent):
-DLINUX_X86_64 -DLINUX_X86_64_OPTERON -DGNU_COMPILER
-I/home/kobus/include
-L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
-lKJB -lfftw3 -lgsl -lgslcblas -ljpeg -lSVM -lstdc++ -lpthread -lSLATEC -lg2c -lacml -lacml_mv -lblas -lg2c -lncursesw
void CHECK_FOR_HEAP_OVERRUNS(void);
DESCRIPTION
In development code, this routine checks for heap memory which has been
overrun. In debug mode the kjb library will identify overruns when freeing,
but often this is too late to pinpoint the problem. In this case this macro
can be interspersed in suspect code to localize where the overrun is
occurring.
DISCLAIMER
This software is not adequatedly tested. It is recomended that
results are checked independantly where appropriate.
AUTHOR
Kobus Barnard
DOCUMENTER
Kobus Barnard
SEE ALSO
KJB_MALLOC
,
KJB_CALLOC
,
KJB_REALLOC
,
TYPE_MALLOC
,
N_TYPE_MALLOC
,
UCHAR_MALLOC
,
BYTE_MALLOC
,
STR_MALLOC
,
BOOL_MALLOC
,
SHORT_MALLOC
,
INT_MALLOC
,
UINT_MALLOC
,
LONG_MALLOC
,
FLT_MALLOC
,
DBL_MALLOC
,
INT16_MALLOC
,
UINT16_MALLOC
,
INT32_MALLOC
,
UINT32_MALLOC
,
N_TYPE_REALLOC
,
UCHAR_REALLOC
,
BYTE_REALLOC
,
STR_REALLOC
,
SHORT_REALLOC
,
INT_REALLOC
,
UINT_REALLOC
,
LONG_REALLOC
,
FLT_REALLOC
,
DBL_REALLOC
,
INT16_REALLOC
,
UINT16_REALLOC
,
INT32_REALLOC
,
UINT32_REALLOC