Click here to Skip to main content
15,896,526 members
Articles / Programming Languages / C++

AGM::LibGC: A C++ Garbage Collection Library

Rate me:
Please Sign up or sign in to vote.
4.67/5 (13 votes)
30 Jul 20043 min read 127.2K   871   28  
A library for C++ garbage collection
This article discusses a library called AGM::LibGC for garbage collection in C#. We will take a look at three fundamental problems of reference counting, and state how the solution offered by LibGC has none of these disadvantages.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD>
   <TITLE>#define GC_THRESHOLD</TITLE>
   <META NAME="GENERATOR" CONTENT="DOC++ 3.4.10">
</HEAD>
<BODY BGCOLOR="#ffffff">

<H2>#define <A HREF="#DOC.DOCU">GC_THRESHOLD</A></H2><H2>(16U*1024U*1024U)</H2><BLOCKQUOTE>The garbage collector runs every time that  allocated memory - garbage collected memory &gt; GC_THRESHOLD.</BLOCKQUOTE>

<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>The garbage collector runs every time that 
allocated memory - garbage collected memory &gt; GC_THRESHOLD. 
By adjusting this variable, garbage collection becomes
rarer (if a bigger value is set) or more often (if a smaller value is
set).</BLOCKQUOTE>
<DL><DT><DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
Software Developer (Senior)
Greece Greece
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions