* src/vm/jit/x86_64/codegen.c (codegen_emit_stub_native): Fixed stackframesize
authorMichael Starzinger <michi@complang.tuwien.ac.at>
Wed, 3 Oct 2007 21:19:52 +0000 (23:19 +0200)
committerMichael Starzinger <michi@complang.tuwien.ac.at>
Wed, 3 Oct 2007 21:19:52 +0000 (23:19 +0200)
for (md->paramcount == 0 && md->returntype != TYPE_VOID) cases.

src/vm/jit/x86_64/codegen.c

index 6824bf53243b7ffcdd40dc40d407458b2472bacc..63878940edf60dfb9538ad8df24153b9a3f51825 100644 (file)
@@ -2912,6 +2912,7 @@ void codegen_emit_stub_native(jitdata *jd, methoddesc *nmd, functionptr f, int s
                sizeof(stackframeinfo) / SIZEOF_VOID_P +
                sizeof(localref_table) / SIZEOF_VOID_P +
                md->paramcount +
+               (md->returntype.type == TYPE_VOID ? 0 : 1) +
                nmd->memuse;
 
        ALIGN_ODD(cd->stackframesize);              /* keep stack 16-byte aligned */