view graal/com.oracle.truffle.sl.test/tests_instrumentation/Instrumentation_assnCount.sl @ 17166:9df38e5fbed6

Limit the maximum Graal thread amount to 32 if nothing else is specified (On SPARC with 256 threads we exceed code cache size)
author Stefan Anzinger <stefan.anzinger@oracle.com>
date Fri, 19 Sep 2014 09:24:16 -0700
parents 7661cc464239
children
line wrap: on
line source

function loop(count) {  
  i = 0;  
  while (i < count) {  
    i = i + 1;  
  }  
  return i;  
}

function main() {
  count = loop(100);
}