projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1057fcd
)
stopped the world for precise.
author
Nathan Ricci
<naricc@microsoft.com>
Wed, 21 Aug 2019 20:05:29 +0000
(16:05 -0400)
committer
Nathan 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
patch
|
blob
|
history
diff --git
a/src/mono/mono/metadata/sgen-mono.c
b/src/mono/mono/metadata/sgen-mono.c
index
32e54f0
..
65a1321
100644
(file)
--- 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.