From da1e12b5895e00d2d6d75936f19dd5c459630de4 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 3 Jul 2007 22:13:52 -0600 Subject: [PATCH] fix stack overflow calculation --- src/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.cpp b/src/vm.cpp index cd185df712..4e6c82ae59 100644 --- a/src/vm.cpp +++ b/src/vm.cpp @@ -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_;