diff options
author | Josh Peterson <joshuap@unity3d.com> | 2019-11-14 17:42:15 +0300 |
---|---|---|
committer | Josh Peterson <joshuap@unity3d.com> | 2019-11-14 17:42:15 +0300 |
commit | 3e81213c802e1945eb6aaee87a4a44f4aa749b97 (patch) | |
tree | 0fdada3da8a6d4c70d104eb7c7f629d8f4f76015 | |
parent | 061d852b24f0128930fa7c4e24ec9d6529cf0eda (diff) |
Reset the GC_push_other_roots function pointer to its default
-rw-r--r-- | misc.c | 2 | ||||
-rw-r--r-- | os_dep.c | 5 |
2 files changed, 7 insertions, 0 deletions
@@ -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) { @@ -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: |