Commit a486d38
committed
Make emscripten_resize_heap compatible with PURE_WASI
Previosly, using PURE_WASI was incompatible with
EMSCRIPTEN_MEMORY_GROWTH flag, and was not documented.
Now, using EMSCRIPTEN_MEMORY_GROWTH with PURE_WASI is
possible. It will not require the host to export
emscripten_notify_memory_growth and will grow the memory
as expected from EMSCRIPTEN_MEMORY_GROWTH.
Fixes #22211
Signed-off-by: inkeliz <inkeliz@inkeliz.com>1 parent 7c52107 commit a486d38
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
164 | 165 | | |
165 | 166 | | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
0 commit comments