You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that running factorial in the interpreter overflows the stack completely, due to its recursive nature. I tried to use different values and couldn't get it to work either. I will take another look when I have some time. Interestingly though, 15000 factorial runs fine when it is JIT-compiled. You can try this:
1500 factorial. "evaluate in workspace and then wait a few seconds for the JIT to compile #factorial"15000 factorial. "evaluate in workspace and it works fine"
Evaluating
15000 factorial
crashes TruffleSqueak with:Resource exhausted: Stack overflow
This happens even when starting with an expanded stack:
./trufflesqueak --vm.Xss128m
./trufflesqueak --vm.Xss1024m
The text was updated successfully, but these errors were encountered: