[wasm] We can't free memory in wasm as it uses the malloc mmap backend.
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 29 Sep 2017 23:14:22 +0000 (16:14 -0700)
committerRodrigo Kumpera <kumpera@gmail.com>
Fri, 29 Sep 2017 23:14:22 +0000 (16:14 -0700)
mono/sgen/sgen-marksweep.c

index e06ac6d3f83f22177fa54f48f5dc96fa23870e98..3f14d5ee7acab33c1d35ccb0b84b3640bc9eb7e8 100644 (file)
@@ -2167,7 +2167,7 @@ major_free_swept_blocks (size_t section_reserve)
 {
        SGEN_ASSERT (0, sweep_state == SWEEP_STATE_SWEPT, "Sweeping must have finished before freeing blocks");
 
-#if defined(HOST_WIN32) || defined(HOST_ORBIS)
+#if defined(HOST_WIN32) || defined(HOST_ORBIS) || defined (HOST_WASM)
                /*
                 * sgen_free_os_memory () asserts in mono_vfree () because windows doesn't like freeing the middle of
                 * a VirtualAlloc ()-ed block.