[sgen] Move Mono specific function declarations to `sgen-client-mono.h`.
authorMark Probst <mark.probst@gmail.com>
Tue, 6 Jan 2015 00:03:08 +0000 (16:03 -0800)
committerMark Probst <mark.probst@gmail.com>
Wed, 29 Apr 2015 17:59:53 +0000 (10:59 -0700)
mono/metadata/sgen-client-mono.h
mono/metadata/sgen-gc.h

index 39cc10976308f9f81024d859bdf15499bf719c12..200b74e3b68dad41b107c37d57bb4289204ad671 100644 (file)
@@ -607,8 +607,13 @@ typedef MonoSemType SgenSemaphore;
 #define SGEN_SEMAPHORE_POST(sem)               MONO_SEM_POST ((sem))
 #define SGEN_SEMAPHORE_WAIT(sem)               MONO_SEM_WAIT ((sem))
 
+gboolean sgen_has_critical_method (void);
+gboolean sgen_is_critical_method (MonoMethod *method);
+
 void sgen_set_use_managed_allocator (gboolean flag);
 gboolean sgen_is_managed_allocator (MonoMethod *method);
 gboolean sgen_has_managed_allocator (void);
 
+void sgen_scan_for_registered_roots_in_domain (MonoDomain *domain, int root_type);
+
 #endif
index 09203c7785d2a8624a3f9677d03fae794a494b70..2b62aa896014e49c6d1ef3d83059841de6284545 100644 (file)
@@ -805,8 +805,6 @@ void sgen_set_pinned_from_failed_allocation (mword objsize);
 void sgen_ensure_free_space (size_t size);
 void sgen_gc_collect (int generation);
 void sgen_perform_collection (size_t requested_size, int generation_to_collect, const char *reason, gboolean wait_to_finish);
-gboolean sgen_has_critical_method (void);
-gboolean sgen_is_critical_method (MonoMethod *method);
 
 int sgen_gc_collection_count (int generation);
 /* FIXME: what exactly does this return? */
@@ -986,7 +984,6 @@ void sgen_check_whole_heap_stw (void);
 void sgen_check_objref (char *obj);
 void sgen_check_heap_marked (gboolean nursery_must_be_pinned);
 void sgen_check_nursery_objects_pinned (gboolean pinned);
-void sgen_scan_for_registered_roots_in_domain (MonoDomain *domain, int root_type);
 void sgen_check_for_xdomain_refs (void);
 char* sgen_find_object_for_ptr (char *ptr);