Man Page gcFixPrematureFrees.3




NAME

     gcFixPrematureFrees, gcStopFixingPrematureFrees - enable and
     disable fixing of premature frees by the libgc library.


SYNOPSIS

     #include <gct.h>

     void gcFixPrematureFrees(void);

     void gcStopFixingPrematureFrees(void);


MT-LEVEL

     Thread safe (but, see BUGS).


DESCRIPTION

     gcFixPrematureFrees() tells the libgc library to fix  prema-
     ture  frees  and  also optimizes collector tuning for fixing
     premature frees.

     gcStopFixingPrematureFrees() tells the libgc library to stop
     fixing  premature frees, reversing the effect of gcFixPrema-
     tureFrees().  This also optimizes collector tuning for  only
     fixing memory leaks.

     To use these functions, you must link your program with  one
     of the libgc libraries (see FILES).


ENVIRONMENT

     GC_DISABLE_FREE
          It turns off explicit deallocation at run-time.  It  is
          equivalent to calling gcFixPrematureFrees() from gcIni-
          tialize().


FILES

     libgc.a, libgc.so
          Libraries for deployment mode.

     libgc_dbg.a, libgc_dbg.so
          Libraries for debugging mode.


SEE ALSO

     gcInitialize(3)