mirror of
https://github.com/corda/corda.git
synced 2024-12-28 16:58:55 +00:00
fix stack overflow calculation
This commit is contained in:
parent
9039daa375
commit
da1e12b589
@ -4297,7 +4297,7 @@ run(Thread* t)
|
|||||||
} else {
|
} else {
|
||||||
if (UNLIKELY(codeMaxStack(t, methodCode(t, code))
|
if (UNLIKELY(codeMaxStack(t, methodCode(t, code))
|
||||||
+ codeMaxLocals(t, methodCode(t, code)) + base
|
+ codeMaxLocals(t, methodCode(t, code)) + base
|
||||||
> Thread::StackSizeInWords))
|
> Thread::StackSizeInWords / 2))
|
||||||
{
|
{
|
||||||
exception = makeStackOverflowError(t);
|
exception = makeStackOverflowError(t);
|
||||||
goto throw_;
|
goto throw_;
|
||||||
|
Loading…
Reference in New Issue
Block a user