diff options
author | John van Groningen | 2012-02-06 12:19:17 +0000 |
---|---|---|
committer | John van Groningen | 2012-02-06 12:19:17 +0000 |
commit | 8cbf111d7fab99010b84ab41e7c2e72e7e321a58 (patch) | |
tree | 7e7ebd6e8089561549f4564845888d34b69702f2 | |
parent | bug fix, use a free register to load the bit_set_table2 address (diff) |
fix minimum heap size test for the memory profiler
-rw-r--r-- | astartup.asm | 8 | ||||
-rw-r--r-- | macho64/astartup.s | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/astartup.asm b/astartup.asm index 0b21c6b..695374a 100644 --- a/astartup.asm +++ b/astartup.asm @@ -2484,11 +2484,11 @@ end_garbage_collect: mov qword ptr d3_flag_write_heap,0 end_garbage_collect_: + push rax + test qword ptr flags,2 je no_heap_use_message - push rax - mov rbp,rsp and rsp,-16 @@ -2524,10 +2524,10 @@ end_garbage_collect_: endif mov rsp,rbp - pop rax - no_heap_use_message: call call_finalizers + + pop rax test byte ptr flags,32 je no_write_heap 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 |