Oracle Solaris Studio 12.4 Man Pages

Exit Print View

Updated: January 2015
 
 

gcInitialize(3)

Name

gcInitialize - configure settings at startup

Synopsis

#include <gct.h>
gcInitialize(void);

MT-LEVEL

Should not be called by user threads.

Description

libgc calls gcInitialize at startup to give the user the opportunity to configure settings. Users may define their own settings by including a function named gcInitialize in their programs using the form above.

User programs should not call gcInitialize directly.

To use the gcInitialize function, you must link your program with one of the libraries (see FILES).

RETURN VALUES

Do not return a value from gcInitialize.

Examples

 
#include <gct.h>
. . .
gcInitialize(void)
{
     gcFixPrematureFrees();
}

Files

libgc.a, libgc.so

Libraries for deployment mode.

libgc_dbg.a, libgc_dbg.so

Libraries for debugging mode.

See also

gcFixPrematureFrees(3)