This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Explain the ggc term "mark"


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} ***


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]