zero locals when invoking method

This commit is contained in:
Joel Dice 2007-07-03 09:38:35 -06:00
parent 32b5d070fb
commit acd254544c

View File

@ -4159,6 +4159,11 @@ run(Thread* t)
frame = makeFrame(t, code, frame, 0, base);
code = methodCode(t, code);
memset(stack + base + parameterCount,
0,
(codeMaxLocals(t, methodCode(t, code)) - parameterCount)
* BytesPerWord);
sp = base + codeMaxLocals(t, methodCode(t, code));
}
} goto loop;