summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2006-06-09 10:30:03 +0000
committerJohn van Groningen2006-06-09 10:30:03 +0000
commite099e54ee6c968f9a780f8d72c8234be4432f189 (patch)
treee84ce4f0b6e3f475c9d41c3c5db29e3b857c223e
parentadd fileIO3.s for 64 bit linux (diff)
fix printing of heap size after garbage collection on windows,
make saved_heap_p 16 bytes instead of 8
-rw-r--r--astartup.asm14
1 files changed, 11 insertions, 3 deletions
diff --git a/astartup.asm b/astartup.asm
index 6667501..fa246ab 100644
--- a/astartup.asm
+++ b/astartup.asm
@@ -89,7 +89,9 @@ total_gc_bytes dq 0
total_compact_gc_bytes dq 0
public saved_heap_p
-saved_heap_p dq 0
+saved_heap_p label ptr
+ dq 0
+ dq 0
public saved_a_stack_p
saved_a_stack_p dq 0
@@ -602,7 +604,8 @@ DLL_PROCESS_ATTACH:
call init_profiler
endif
- mov saved_heap_p,rdi
+ mov qword ptr saved_heap_p,rdi
+ mov qword ptr saved_heap_p+8,r15
mov saved_a_stack_p,rsi
mov rax,1
@@ -620,7 +623,8 @@ DLL_PROCESS_DETACH:
push rsi
push rdi
- mov rdi,saved_heap_p
+ mov rdi,qword ptr saved_heap_p
+ mov r15,qword ptr saved_heap_p+8
mov rsi,saved_a_stack_p
call exit_clean
@@ -2446,7 +2450,11 @@ end_garbage_collect_:
endif
call ew_print_string
+ ifdef LINUX
mov rdi,[rbp]
+ else
+ mov rcx,[rbp]
+ endif
call ew_print_int
ifdef LINUX