Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

gcInitialize(3)

gcmonitor(1)

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 Monitor 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 gcInitialize().

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

SunOS WorkShop_5.0  —  Last change: 1998-06-12

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026