Go to main content
Oracle Developer Studio 12.6 Man Pages

Exit Print View

Updated: June 2017
 
 

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 premature frees and also optimizes collector tuning for fixing premature frees.

gcStopFixingPrematureFrees() tells the libgc library to stop fixing premature frees, reversing the effect of gcFixPrematureFrees(). 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 gcInitialize().

Files

libgc.a, libgc.so

Libraries for deployment mode.

libgc_dbg.a, libgc_dbg.so

Libraries for debugging mode.

See Also

gcInitialize(3)