Man Page gcFixPrematureFrees.3




NAME

     gcFixPrematureFrees, gcStopFixingPrematureFrees - enable and
     disable fixing of premature frees by the Sun WorkShop Memory
     Monitor


SYNOPSIS

     #include <gct.h>

     void gcFixPrematureFrees(void);

     void gcStopFixingPrematureFrees(void);


MT-LEVEL

     Thread safe (but, see BUGS).


DESCRIPTION

     gcFixPrematureFrees() tells Sun WorkShop Memory  Monitor  to
     fix  premature frees and also optimizes collector tuning for
     fixing premature frees.

     gcStopFixingPrematureFrees() tells Sun WorkShop Memory Moni-
     tor  to stop fixing premature frees, reversing the effect of
     gcFixPrematureFrees().  This also optimizes collector tuning
     for only fixing memory leaks.

     To use the Sun WorkShop Memory Monitor you  must  link  your
     program   with  one  of  the  Sun  WorkShop  Memory  Monitor
     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
          Sun WorkShop Memory Monitor  libraries  for  deployment
          mode.

     libgc_dbg.a, libgc_dbg.so
          Sun WorkShop Memory  Monitor  libraries  for  debugging
          mode, enabling interaction with gcmonitor(1).


SEE ALSO

     gcInitialize(3) gcmonitor(1)

     "Automatically Fixing Premature Frees" Sun  WorkShop  Memory
     Monitor User's Manual