This lets the major collector query whether the current collection
is a minor or a major one.
void *value;
} Ephemeron;
-enum {
- GENERATION_NURSERY,
- GENERATION_OLD,
- GENERATION_MAX
-};
-
int current_collection_generation = -1;
/*
#endif /* USE_SIGNAL_BASED_START_STOP_WORLD */
+int
+mono_sgen_get_current_collection_generation (void)
+{
+ return current_collection_generation;
+}
+
void
mono_gc_set_gc_callbacks (MonoGCCallbacks *callbacks)
{
long small_internal_mem_bytes [INTERNAL_MEM_MAX];
};
+enum {
+ GENERATION_NURSERY,
+ GENERATION_OLD,
+ GENERATION_MAX
+};
+
void mono_sgen_init_internal_allocator (void) MONO_INTERNAL;
SgenInternalAllocator* mono_sgen_get_unmanaged_allocator (void) MONO_INTERNAL;
void mono_sgen_add_to_global_remset (gpointer ptr) MONO_INTERNAL;
+int mono_sgen_get_current_collection_generation (void) MONO_INTERNAL;
typedef struct _SgenMajorCollector SgenMajorCollector;
struct _SgenMajorCollector {