Same thread running the same recursive code seems to consume more stack memory in Java 8 compared to Java 7
I am asking a question about "java stack overflow" in the "stackoverflow" site :) A particular thread which makes some recursive function calls for a particular input runs fine in Oracle Java 7 (64 bit) for a configured stack size of 228k (-Xss228k). However, the same thread running the same recursive code for the same input throws a java.lang.StackOverflowError in Oracle Java 8 (64 bit) for the same stack size of 228k. It runs fine in Java 8 if the stack size is increased to 512k (-Xss512k). Any idea why this could happen? Have any changes been made in Java 8 (Hotspot JVM) compared to Java 7