summaryrefslogtreecommitdiff
path: root/macho64
diff options
context:
space:
mode:
authorJohn van Groningen2012-02-06 12:19:17 +0000
committerJohn van Groningen2012-02-06 12:19:17 +0000
commit8cbf111d7fab99010b84ab41e7c2e72e7e321a58 (patch)
tree7e7ebd6e8089561549f4564845888d34b69702f2 /macho64
parentbug fix, use a free register to load the bit_set_table2 address (diff)
fix minimum heap size test for the memory profiler
Diffstat (limited to 'macho64')
-rw-r--r--macho64/astartup.s8
1 files changed, 4 insertions, 4 deletions
diff --git a/macho64/astartup.s b/macho64/astartup.s
index 8f2bc01..41db2d3 100644
--- a/macho64/astartup.s
+++ b/macho64/astartup.s
@@ -2565,11 +2565,11 @@ end_garbage_collect:
mov qword ptr d3_flag_write_heap[rip],0
end_garbage_collect_:
+ push rax
+
test qword ptr _flags[rip],2
je no_heap_use_message
- push rax
-
mov rbp,rsp
and rsp,-16
@@ -2605,10 +2605,10 @@ end_garbage_collect_:
.endif
mov rsp,rbp
- pop rax
-
no_heap_use_message:
call call_finalizers
+
+ pop rax
test byte ptr _flags[rip],32
je no_write_heap