Fixed bug in physically_relocate + bug fix in runtime.c list iteration

This commit is contained in:
Egor Sheremetov 2023-05-23 13:40:46 +02:00
parent 313997496d
commit 4eea9a7933
7 changed files with 139 additions and 51 deletions

View file

@ -61,9 +61,7 @@ __gc_root_scan_stack:
pushl %ebx
pushl %edx
movl __gc_stack_top, %eax
// jmp next
cmpl %eax, __gc_stack_bottom
jb returnn
jmp next
loop:
movl (%eax), %ebx
@ -109,7 +107,7 @@ gc_run_t:
next:
addl $4, %eax
cmpl %eax, __gc_stack_bottom
jnb loop
jne loop
returnn:
movl $0, %eax
popl %edx