From bbd4c58f91fafc8aa83a32a1a2d752f571dfd85a Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 21 Jan 2015 14:08:23 -0700 Subject: [PATCH] align stack size for vmNativeCall to 16 on ARM The ARM64 ABI(s) require this, and it doesn't hurt to do it on 32-bit ARM as well. --- src/avian/arm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avian/arm.h b/src/avian/arm.h index c0309486a3..ceed56e984 100644 --- a/src/avian/arm.h +++ b/src/avian/arm.h @@ -311,7 +311,7 @@ inline uint64_t dynamicCall(void* function, vfpIndex = VfpCount; } - unsigned stackSize = stackIndex * BytesPerWord + ((stackIndex & 1) << 2); + unsigned stackSize = pad(stackIndex * BytesPerWord, 16); return vmNativeCall(function, stackSize, RUNTIME_ARRAY_BODY(stack),