mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
fix stack overflow calculation
This commit is contained in:
parent
9039daa375
commit
da1e12b589
@ -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_;
|
||||
|
Loading…
Reference in New Issue
Block a user