< prev index next > test/jdk/java/lang/ScopedValue/StressStackOverflow.java
Print this page
static class TestFailureException extends RuntimeException {
TestFailureException(String s) { super(s); }
}
! static final long DURATION_IN_NANOS = Duration.ofMinutes(2).toNanos();
// Test the ScopedValue recovery mechanism for stack overflows. We implement both Callable
// and Runnable interfaces. Which one gets tested depends on the constructor argument.
class DeepRecursion implements Callable<Object>, Supplier<Object>, Runnable {
static class TestFailureException extends RuntimeException {
TestFailureException(String s) { super(s); }
}
! static final long DURATION_IN_NANOS = Duration.ofMinutes(1).toNanos();
// Test the ScopedValue recovery mechanism for stack overflows. We implement both Callable
// and Runnable interfaces. Which one gets tested depends on the constructor argument.
class DeepRecursion implements Callable<Object>, Supplier<Object>, Runnable {
< prev index next >