diff options
author | Jan Kotas <jkotas@microsoft.com> | 2016-06-24 07:43:40 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2016-06-24 07:43:40 +0300 |
commit | 9c32c091835a19ed1c387340a1f03737a55a614f (patch) | |
tree | 5a9f6b3ee0bc4b6062caa3f6938f122d64c02f62 /src/Native/Runtime/amd64 | |
parent | 38938df68cc8d070e42e763753ff77b37fc990ea (diff) |
Fix wrong register in Unix array allocation helper
Diffstat (limited to 'src/Native/Runtime/amd64')
-rw-r--r-- | src/Native/Runtime/amd64/AllocFast.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Native/Runtime/amd64/AllocFast.S b/src/Native/Runtime/amd64/AllocFast.S index a0dedc4cc..443d52b19 100644 --- a/src/Native/Runtime/amd64/AllocFast.S +++ b/src/Native/Runtime/amd64/AllocFast.S @@ -142,7 +142,7 @@ NESTED_ENTRY RhpNewArray, _TEXT, NoHandler // Compute overall allocation size (align(base size + (element size * elements), 8)). movzx eax, word ptr [rbx + OFFSETOF__EEType__m_usComponentSize] mul r12 - mov edx, [rdi + OFFSETOF__EEType__m_uBaseSize] + mov edx, [rbx + OFFSETOF__EEType__m_uBaseSize] add rax, rdx add rax, 7 and rax, -8 |