I’ve been looking recently on a deep stack with 2000 recursive function calls, and was wondering how is the limit defined on the number of function calls in the stack in Java?
I’ve been looking recently on a deep stack with 2000 recursive function calls, and
Share
The limit is based on the maximum amount of stack memory that is allocated to each thread. You can configure this limit using the -Xss JVM argument. See these links for more details:
Hotspot FAQ
Using Xss To Adjust Java Default Thread Stack Size