From bd52a1adcb64ac333dbbedeb13d80eed2a24aa98 Mon Sep 17 00:00:00 2001 From: Josh Peterson Date: Tue, 3 Dec 2019 09:09:24 -0500 Subject: Remove code that attempt to free the heap on Windows This causes problems in Unity for the UWP player when it unloads IL2CPP. It looks like it was never actually necessary on Windows desktop either, so let's remove it. --- misc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/misc.c b/misc.c index 1bd3e7f9..e59d78d0 100644 --- a/misc.c +++ b/misc.c @@ -1432,9 +1432,6 @@ 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)) && !defined(MSWIN_XBOX1) - GC_win32_free_heap(); -# endif GC_clear_freelist(); GC_clear_bottom_indices(); GC_clear_finalizable_object_table(); -- cgit v1.2.3