projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22187e8
)
[wasm] We can't free memory in wasm as it uses the malloc mmap backend.
author
Rodrigo Kumpera
<kumpera@gmail.com>
Fri, 29 Sep 2017 23:14:22 +0000
(16:14 -0700)
committer
Rodrigo Kumpera
<kumpera@gmail.com>
Fri, 29 Sep 2017 23:14:22 +0000
(16:14 -0700)
mono/sgen/sgen-marksweep.c
patch
|
blob
|
history
diff --git
a/mono/sgen/sgen-marksweep.c
b/mono/sgen/sgen-marksweep.c
index e06ac6d3f83f22177fa54f48f5dc96fa23870e98..3f14d5ee7acab33c1d35ccb0b84b3640bc9eb7e8 100644
(file)
--- a/
mono/sgen/sgen-marksweep.c
+++ b/
mono/sgen/sgen-marksweep.c
@@
-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.