stopped the world for precise.
authorNathan Ricci <naricc@microsoft.com>
Wed, 21 Aug 2019 20:05:29 +0000 (16:05 -0400)
committerNathan Ricci <naricc@microsoft.com>
Wed, 21 Aug 2019 20:05:29 +0000 (16:05 -0400)
Commit migrated from https://github.com/mono/mono/commit/dc8aeba59346c59703bd5d69974a9a63c7c02840

src/mono/mono/metadata/sgen-mono.c

index 32e54f0..65a1321 100644 (file)
@@ -824,6 +824,20 @@ sgen_finish_concurrent_work (const char *reason, gboolean stw)
        sgen_major_collector.finish_sweeping ();
 }
 
+void
+mono_gc_stop_world ()
+{
+       LOCK_GC;
+       sgen_stop_world (0, FALSE);
+}
+
+void 
+mono_gc_restart_world ()
+{
+       sgen_restart_world (0, FALSE);
+       UNLOCK_GC;
+}
+
 /*
  * When appdomains are unloaded we can easily remove objects that have finalizers,
  * but all the others could still be present in random places on the heap.