Skip to content

Commit 55e27c1

Browse files
committed
1 parent b6ff285 commit 55e27c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libAtomVM/memory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ enum MemoryGCResult memory_ensure_free_with_roots(Context *c, size_t size, size_
158158
// Target heap size depends on:
159159
// - alloc_mode (MEMORY_FORCE_SHRINK takes precedence)
160160
// - heap growth strategy
161-
bool should_gc = free_space < size || (alloc_mode == MEMORY_FORCE_SHRINK) || c->heap.root->next != NULL;
161+
bool should_gc = free_space < size || (alloc_mode == MEMORY_FORCE_SHRINK);
162162
size_t memory_size = 0;
163163
if (!should_gc) {
164164
switch (c->heap_growth_strategy) {

0 commit comments

Comments
 (0)