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:41:54 +0300
committerJosh Peterson <joshuap@unity3d.com>2019-11-14 17:41:54 +0300
commit061d852b24f0128930fa7c4e24ec9d6529cf0eda (patch)
tree1c47e126b75bf206219541b9aae59b3f83f1c76a
parent8b95edbd6ede7aeeb17a58330a9028850d2e49f3 (diff)
Only call a Windows-specific function on Windows
-rw-r--r--misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 56f57bb7..7e44207d 100644
--- a/misc.c
+++ b/misc.c
@@ -1430,11 +1430,14 @@ GC_API void GC_CALL GC_enable_incremental(void)
# endif
GC_clear_exclusion_table();
memset(&GC_arrays, 0, sizeof(GC_arrays));
+# if defined(MSWIN32) || defined(MSWINCE)
GC_win32_free_heap();
+# endif
GC_clear_freelist();
GC_clear_bottom_indices();
GC_clear_finalizable_object_table();
GC_reset_mark_statics();
+ GC_reset_default_push_other_roots();
}
}