From 0ce2027f2fd97ceb101a5afe2bdcf4e731fdede5 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Fri, 20 Apr 2012 12:12:02 +0000 Subject: fix memory allocation of arrays of unboxed records of size 4 for 64 bit versions --- astartup.asm | 2 +- macho64/astartup.s | 2 +- thread/astartup.asm | 2 +- thread_macho64/astartup.s | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/astartup.asm b/astartup.asm index 695374a..4690725 100644 --- a/astartup.asm +++ b/astartup.asm @@ -4520,7 +4520,7 @@ st_fillr3_array: ret create_R_array_4: - lea rbp,3[rax+4] + lea rbp,3[rax*4] sub r15,rbp jge no_collect_4584 call collect_0 diff --git a/macho64/astartup.s b/macho64/astartup.s index 41db2d3..55e5027 100644 --- a/macho64/astartup.s +++ b/macho64/astartup.s @@ -4646,7 +4646,7 @@ st_fillr3_array: ret create_R_array_4: - lea rbp,3[rax+4] + lea rbp,3[rax*4] sub r15,rbp jge no_collect_4584 att_call collect_0 diff --git a/thread/astartup.asm b/thread/astartup.asm index 6862e97..5fed1d2 100644 --- a/thread/astartup.asm +++ b/thread/astartup.asm @@ -5353,7 +5353,7 @@ st_fillr3_array: ret create_R_array_4: - lea rbp,3[rax+4] + lea rbp,3[rax*4] sub r15,rbp jge no_collect_4584 call collect_0 diff --git a/thread_macho64/astartup.s b/thread_macho64/astartup.s index ec44dcc..c167a07 100644 --- a/thread_macho64/astartup.s +++ b/thread_macho64/astartup.s @@ -4761,7 +4761,7 @@ st_fillr3_array: ret create_R_array_4: - lea rbp,3[rax+4] + lea rbp,3[rax*4] sub r15,rbp jge no_collect_4584 att_call collect_0 -- cgit v1.2.3