Took changes from miguel's branch.
authorNathan Ricci <naricc@microsoft.com>
Wed, 21 Aug 2019 19:54:07 +0000 (15:54 -0400)
committerNathan Ricci <naricc@microsoft.com>
Wed, 21 Aug 2019 19:54:07 +0000 (15:54 -0400)
Commit migrated from https://github.com/mono/mono/commit/56f44379d0eaf22fca1980ef7023032e37ce2bd4

src/mono/mono/metadata/boehm-gc.c
src/mono/mono/metadata/mono-gc.h

index 8414e24..71225b3 100644 (file)
@@ -347,6 +347,18 @@ mono_gc_collection_count (int generation)
        return GC_gc_no;
 }
 
+void
+mono_gc_stop_world ()
+{
+       g_assert ("mono_gc_stop_world is not supported in Boehm");
+}
+
+void
+mono_gc_restart_world ()
+{
+       g_assert ("mono_gc_restart_world is not supported in Boehm");
+}
+
 /**
  * mono_gc_add_memory_pressure:
  * \param value amount of bytes
index 247e32e..5d7f465 100644 (file)
@@ -119,6 +119,12 @@ 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);
 
+/*
+ * Only supported under SGen.   These two with Sgen will take and release the LOCK_GC
+ */
+void mono_gc_stop_world (void);
+void mono_gc_restart_world (void);
+       
 MONO_END_DECLS
 
 #endif /* __METADATA_MONO_GC_H__ */