This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Explain the ggc term "mark"
- From: Basile STARYNKEVITCH <basile at starynkevitch dot net>
- To: okellogg at users dot sourceforge dot net
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 08 Sep 2009 21:03:00 +0200
- Subject: Re: [PATCH] Explain the ggc term "mark"
- References: <1252436746.7094.7.camel@tidbit.site>
Oliver Kellogg wrote:
Marking an object can mean either that it is marked for garbage
collection or that it is marked for protection against garbage
collection. It took me a bit of studying the code to find out that ggc
uses the first meaning.
The traditional usage in mark & sweep garbage collection
http://en.wikipedia.org/wiki/Garbage_collection_(computer_science)
is that online alive objects are marked.
2009-09-08 Oliver Kellogg <okellogg@users.sourceforge.net>
* ggc.h (gt_pointer_walker): Explain what "mark" means.
-/* Mark the object in the first parameter and anything it points to. */
+/* Mark the object in the first parameter and anything it points to.
+ Marked objects are protected from garbage collection. */
I would just say
/* Mark (as alive) the bject in the first parameter and anything it
points to. */
But I am not a native English speaker, so perhaps your language is more
natural.
Regards.
--
Basile STARYNKEVITCH http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mines, sont seulement les miennes} ***