Hmm… it works for me and with far less than 999MB of stack:
> java -Xss4m Test
0
(Windows JDK 7, build 17.0-b05 client VM, and Linux JDK 6 – same version information as you posted)
More Related Contents:
- Why does the count of calls of a recursive method causing a StackOverflowError vary between program runs? [duplicate]
- How to implement stack and queue in java? [closed]
- What is a StackOverflowError?
- Why is Java Vector (and Stack) class considered obsolete or deprecated?
- Implementing back/forward buttons in Swing
- Why is the max recursion depth I can reach non-deterministic?
- Java stack overflow error – how to increase the stack size in Eclipse?
- What causes a java.lang.StackOverflowError
- Stack overflows from deep recursion in Java?
- java.lang.StackOverflowError while using a RegEx to Parse big strings
- Stack with find-min/find-max more efficient than O(n)?
- What is the default stack size, can it grow, how does it work with garbage collection?
- Why should I use Deque over Stack?
- Java / Android – How to print out a full stack trace?
- gson.toJson() throws StackOverflowError
- Parenthesis/Brackets Matching using Stack algorithm
- StackOverflowError when serializing an object in Java
- Escape analysis in Java
- Why I’m getting StackOverflowError
- Why am I getting a StackOverflowError exception in my constructor
- java StackOverflowError when local and instance objects creation
- Where can I find default -Xss (stack size) value for Oracle JVM?
- Java regex to match start/end tags causes stack overflow
- What actually causes a Stack Overflow error? [duplicate]
- Maven compilation: Failure executing javac
- Java balanced expressions check {[()]}
- Java ArrayList how to add elements at the beginning
- How do I copy a stack in Java?
- What are the negative aspects of Java class Stack inheriting from Vector?
- java.lang.StackOverflowError due to recursion