Commit 19fea87
committed
Merge pull request atomvm#511 from pguyot-w16/add-missing-memory_ensure_free
Fix handling of exit reason in non-SMP builds
This problem is solved differently in feature/smp branch.
The exit reason was in ctx instead of target here, which creates a problem when
target runs the garbage collector as the exit reason will be copied but will not
be accounted for in the used memory, thus a future memory_ensure_free may fail
if the exit_reason is larger than `MIN_FREE_SPACE_SIZE`.
These changes are made under both the "Apache 2.0" and the "GNU Lesser General
Public License 2.1 or later" license terms (dual license).
SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
191 | 197 | | |
192 | 198 | | |
193 | 199 | | |
| |||
0 commit comments