Merge pull request #819 from brendanzagaeski/patch-1
[mono.git] / mono / mini / exceptions-x86.c
index d0be684cbe322c3047b4db5b92a9239ae3470322..0fa01593b9df3e32dd86d2d041d15960820fb0df 100644 (file)
@@ -343,8 +343,6 @@ mono_arch_get_restore_context (MonoTrampInfo **info, gboolean aot)
 
        /* load ESP into EBP */
        x86_mov_reg_membase (code, X86_EBP, X86_EAX,  G_STRUCT_OFFSET (MonoContext, esp), 4);
-       /* Align it, it can be unaligned if it was captured asynchronously */
-       x86_alu_reg_imm (code, X86_AND, X86_EBP, ~(MONO_ARCH_LOCALLOC_ALIGNMENT - 1));
        /* load return address into ECX */
        x86_mov_reg_membase (code, X86_ECX, X86_EAX,  G_STRUCT_OFFSET (MonoContext, eip), 4);
        /* save the return addr to the restored stack - 4 */