Mercurial > hg > truffle
view graal/com.oracle.truffle.sl.test/tests/Sum.sl @ 17022:9364a47125ef
Eliminating the lambda expression, as in the recursive call it creates unnecessary stack frames which causes StackOverflowErros sooner
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Tue, 02 Sep 2014 11:49:12 -0700 |
parents | ff3136ecb5a7 |
children |
line wrap: on
line source
function main() { i = 0; sum = 0; while (i <= 10000) { sum = sum + i; i = i + 1; } return sum; }