Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Unity-Technologies/bdwgc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Peterson <joshuap@unity3d.com>2019-11-14 22:50:57 +0300
committerJosh Peterson <joshuap@unity3d.com>2019-11-14 22:50:57 +0300
commit4c5cc3248975e36d7f1238444a7fdc022426743b (patch)
tree76ca770153d799818ee9bd8edd54661fa7aa8d27
parent3e81213c802e1945eb6aaee87a4a44f4aa749b97 (diff)
Fix the no-thread implementation of GC_reset_default_push_other_roots
-rw-r--r--os_dep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/os_dep.c b/os_dep.c
index 7d9932f7..0158990b 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -2791,7 +2791,11 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void)
void GC_reset_default_push_other_roots(void)
{
+#ifdef THREADS
GC_push_other_roots = GC_default_push_other_roots;
+#else
+ GC_push_other_roots = 0;
+#endif
}
/*