mono-api-gc.html

Garbage Collector Interface

Public Interface

The public interface of the Mono GC is fairly limited, and its the only one that embedders should be using:

mono_gc_collect
Prototype: mono_gc_collect

mono_gc_max_generation
Prototype: mono_gc_max_generation

mono_gc_get_heap_size
Prototype: mono_gc_get_heap_size

mono_gc_get_used_size
Prototype: mono_gc_get_used_size

Weak Links

mono_gc_weak_link_add
Prototype: mono_gc_weak_link_add

mono_gc_weak_link_get
Prototype: mono_gc_weak_link_get

mono_gc_weak_link_remove
Prototype: mono_gc_weak_link_remove

Internal Interface

The internal interface of the Mono GC is the interface used between the runtime engine and the garbage collector.

mono_gc_disable
Prototype: mono_gc_disable

mono_gc_enable
Prototype: mono_gc_enable

mono_gc_is_finalizer_thread
gboolean mono_gc_is_finalizer_thread (MonoThread *thread)

Parameters

thread:
the thread to test.
Remarks

In Mono objects are finalized asynchronously on a separate thread. This routine tests whether the thread argument represents the finalization thread.

Returns true if thread is the finalization thread.

mono_gc_out_of_memory
Prototype: mono_gc_out_of_memory

mono_gc_start_world
Prototype: mono_gc_start_world

mono_gc_stop_world
Prototype: mono_gc_stop_world

mono_gc_alloc_fixed
Prototype: mono_gc_alloc_fixed

mono_gc_enable_events
Prototype: mono_gc_enable_events

mono_gc_free_fixed
Prototype: mono_gc_free_fixed

mono_gc_make_descr_from_bitmap
Prototype: mono_gc_make_descr_from_bitmap

mono_gc_base_init
Prototype: mono_gc_base_init

mono_gc_invoke_finalizers
Prototype: mono_gc_invoke_finalizers

mono_gc_is_gc_thread
Prototype: mono_gc_is_gc_thread

mono_gc_pending_finalizers
Prototype: mono_gc_pending_finalizers

mono_gc_register_thread
Prototype: mono_gc_register_thread