running the following program with JPF leads to an out of memory error,
but I would expect a stack overflow error:
public class StackOverflow {
public static void main(String[] args) {
new StackOverflow().m();
}
public void m() {
m();
}
}
Is there a way to make JPF report a StackOverFlowError here? E.g. can I
set the maximal stack size in JPF, similar to -Xss for the Java HotSpot VM?
Thanks,
Michael
A stack depth checker is pretty easy to implement as a methodEntered()/methodExited() listener. I might add it to the BudgetChecker.
-- Peter
-- Peter