[runtime] Introduce kind test functions to cleanup things a bit.
[mono.git] / mono / metadata / mono-gc.h
index 24ffda7730a2ecb67c1a158f542a768e6eead89d..c5c65b66947c8a8f83e1c8dd53f3aee795ddf1a1 100644 (file)
@@ -40,6 +40,8 @@ typedef enum {
        MONO_ROOT_SOURCE_THREAD_POOL = 12,
        // Roots in the debugger agent.
        MONO_ROOT_SOURCE_DEBUGGER = 13,
+       // Handle structures, used for object passed to internal functions
+       MONO_ROOT_SOURCE_HANDLE = 14,
 } MonoGCRootSource;
 
 MONO_API void   mono_gc_collect         (int generation);
@@ -48,6 +50,8 @@ MONO_API int    mono_gc_get_generation  (MonoObject *object);
 MONO_API int    mono_gc_collection_count (int generation);
 MONO_API int64_t mono_gc_get_used_size   (void);
 MONO_API int64_t mono_gc_get_heap_size   (void);
+MONO_API MonoBoolean mono_gc_pending_finalizers (void);
+MONO_API void     mono_gc_finalize_notify    (void);
 MONO_API int    mono_gc_invoke_finalizers (void);
 /* heap walking is only valid in the pre-stop-world event callback */
 MONO_API int    mono_gc_walk_heap        (int flags, MonoGCReferences callback, void *data);