[runtime] Fix shared-only build.
[mono.git] / mono / mini / mini-gc.h
index 83e759879136acde2b0112d5d5d8d3dd5756dc06..4373d17733248751b3d7f589b254b6ce8990b675 100644 (file)
@@ -1,10 +1,14 @@
+/**
+ * \file
+ */
+
 #ifndef __MONO_MINI_GC_H__
 #define __MONO_MINI_GC_H__
 
 #include "mini.h"
 
 /*
- * The GC type of a stack slot.
+ * The GC type of a stack slot or register.
  * This can change through the method as follows:
  * - a SLOT_REF can become SLOT_NOREF and vice-versa when it becomes live/dead.
  * - a SLOT_PIN can become SLOT_REF after it has been definitely assigned.
@@ -14,16 +18,20 @@ typedef enum {
        SLOT_NOREF = 0,
        /* Stack slot contains a reference */
        SLOT_REF = 1,
-       /* No info, slot needs to be scanned conservatively */
+       /* No info or managed pointer, slot needs to be scanned conservatively */
        SLOT_PIN = 2
-} StackSlotType;
+} GCSlotType;
+
+void mini_gc_init (void);
+
+void mini_gc_init_cfg (MonoCompile *cfg);
 
-void mini_gc_init (void) MONO_INTERNAL;
+void mini_gc_enable_gc_maps_for_aot (void);
 
-void mini_gc_init_cfg (MonoCompile *cfg) MONO_INTERNAL;
+void mini_gc_create_gc_map (MonoCompile *cfg);
 
-void mini_gc_create_gc_map (MonoCompile *cfg) MONO_INTERNAL;
+void mini_gc_set_slot_type_from_fp (MonoCompile *cfg, int slot_offset, GCSlotType type);
 
-void mini_gc_set_slot_type_from_cfa (MonoCompile *cfg, int slot_offset, StackSlotType type) MONO_INTERNAL;
+void mini_gc_set_slot_type_from_cfa (MonoCompile *cfg, int slot_offset, GCSlotType type);
 
 #endif