From 23697829b9b313ba838a6ba48b01ea1bcdbc6379 Mon Sep 17 00:00:00 2001 From: danyabeerzun Date: Wed, 24 Apr 2019 16:47:36 +0300 Subject: [PATCH] fix BUG (GC bug) in L__gc_init --- runtime/gc_runtime.s | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/runtime/gc_runtime.s b/runtime/gc_runtime.s index 5f71d4da8..ac8668c40 100644 --- a/runtime/gc_runtime.s +++ b/runtime/gc_runtime.s @@ -11,12 +11,11 @@ __gc_stack_top: .long 0 .globl __post_gc .globl L__gc_init .globl __gc_root_scan_stack - .globl __gc_trace_registers .extern init_pool .extern gc_test_and_copy_root .text -L__gc_init: movl %esp, __gc_stack_bottom +L__gc_init: movl %ebp, __gc_stack_bottom addl $4, __gc_stack_bottom call init_pool ret @@ -113,19 +112,3 @@ returnn: movl %ebp, %esp popl %ebp ret - - - - -__gc_trace_registers: - pushl %ebp - movl %esp, %ebp - - pushl %ebx - call gc_test_and_copy_root - popl %ebx - - movl %ebp, %esp - popl %ebp - ret -