TestStackOutOfMemory.java 565 B

12345678910111213141516171819202122
  1. /**
  2. * VM Avgs:
  3. * -Xss128k
  4. * @author 献
  5. * @company Goochine-深圳古辰创智科技有限公司
  6. * @website www.goochine.com
  7. * @tel 18271840547
  8. * @date 2017/4/24
  9. */
  10. public class TestStackOutOfMemory {
  11. public static void main(String[] args) {
  12. TestStackOutOfMemory t = new TestStackOutOfMemory();
  13. t.stackTest(1L, 2L, 3L, 2.3, 2.4);
  14. }
  15. public double stackTest(Long l1, Long l2, Long l3, double d1, double d2) {
  16. long l = l1 + l2 + l3;
  17. double d = d1 + d2;
  18. return this.stackTest(1L, 2L, 3L, 2.3, 2.4);
  19. }
  20. }