I have a function in my Java program that might been called recursively for more than 100,000 times. But when I run my program, VM raises an java.lang.StackOverflowError after about 1600 call, and when I run my program with -server java command option, it raises the same error after about 4000 recursive call. I can't change this recursivity.
Does have anybody any idea about this problem?