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 17:42:15 +0300
committerJosh Peterson <joshuap@unity3d.com>2019-11-14 17:42:15 +0300
commit3e81213c802e1945eb6aaee87a4a44f4aa749b97 (patch)
tree0fdada3da8a6d4c70d104eb7c7f629d8f4f76015
parent061d852b24f0128930fa7c4e24ec9d6529cf0eda (diff)
Reset the GC_push_other_roots function pointer to its default
-rw-r--r--misc.c2
-rw-r--r--os_dep.c5
2 files changed, 7 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 7e44207d..77dd3bd6 100644
--- a/misc.c
+++ b/misc.c
@@ -1419,6 +1419,8 @@ GC_API void GC_CALL GC_enable_incremental(void)
}
#endif
+ extern void GC_reset_default_push_other_roots(void);
+
GC_API void GC_CALL GC_deinit(void)
{
if (GC_is_initialized) {
diff --git a/os_dep.c b/os_dep.c
index 7bee84c1..7d9932f7 100644
--- a/os_dep.c
+++ b/os_dep.c
@@ -2789,6 +2789,11 @@ GC_API GC_push_other_roots_proc GC_CALL GC_get_push_other_roots(void)
return GC_push_other_roots;
}
+void GC_reset_default_push_other_roots(void)
+{
+ GC_push_other_roots = GC_default_push_other_roots;
+}
+
/*
* Routines for accessing dirty bits on virtual pages.
* There are six ways to maintain this information: