fix stack overflow calculation

This commit is contained in:
Joel Dice 2007-07-03 22:13:52 -06:00
parent 9039daa375
commit da1e12b589

View File

@ -4297,7 +4297,7 @@ run(Thread* t)
} else {
if (UNLIKELY(codeMaxStack(t, methodCode(t, code))
+ codeMaxLocals(t, methodCode(t, code)) + base
> Thread::StackSizeInWords))
> Thread::StackSizeInWords / 2))
{
exception = makeStackOverflowError(t);
goto throw_;