aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/elymasAsmLib.ey4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/elymasAsmLib.ey b/compiler/elymasAsmLib.ey
index e5d90c9..e5e242b 100644
--- a/compiler/elymasAsmLib.ey
+++ b/compiler/elymasAsmLib.ey
@@ -374,6 +374,10 @@
/rbx :popqReg
:retn
+ # free lists are accumulated during searchForFreeBlock when small blocks are skipped
+ # they always point downwards in the heap and are terminated by a null pointer
+ # only cells below unusedHeapStart may be present in the free lists
+
@takeFromFreelist
/rdi /rax :movqRegReg
/rax :decqReg