From: Nathan Ricci Date: Wed, 21 Aug 2019 20:05:29 +0000 (-0400) Subject: stopped the world for precise. X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~516^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06603e10734bdb105d5ce2c4a0ca2a15e783013e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git stopped the world for precise. Commit migrated from https://github.com/mono/mono/commit/dc8aeba59346c59703bd5d69974a9a63c7c02840 --- diff --git a/src/mono/mono/metadata/sgen-mono.c b/src/mono/mono/metadata/sgen-mono.c index 32e54f0..65a1321 100644 --- a/src/mono/mono/metadata/sgen-mono.c +++ b/src/mono/mono/metadata/sgen-mono.c @@ -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.