[Mono-list] What does the C method mono_gc_collect do?

Paolo Molaro lupus at ximian.com
Wed Sep 15 09:32:39 EDT 2010


On 09/14/10 petermonsson wrote:
> Personal Note: To get the generation I used "int mono_gc_max_generation();"
> which seemed to kick off the garbage collector. mono-gc.h also has "int
> mono_gc_get_generation(MonoObject *object);" but it is undocumented, so I'm
> not sure whether it is supposed to be used.

That one gets the generation number the object belongs to.
I just added the documentation to current trunk (many runtime functions
map fairly well to the equivalently named corlib methods, in this cases
the ones in the System.GC class).

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better


More information about the Mono-list mailing list