NAME

optimize_free - Speeds up frees while heap checking

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 optimize_free(void);

DESCRIPTION

If this routine is called before a code segment which does lots of frees, then heap checking should go faster. If the optimization succeeds, then an internal validity flag is set to true, and then the fast lookup is used until the table changes.

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

memory_used , kjb_malloc , kjb_calloc , kjb_realloc , watch_for_free , check_initialization , optimize_free_2 , kjb_free