view graal/com.oracle.truffle.sl.test/tests_instrumentation/Instrumentation_assnCount.sl @ 21617:ed013f4d38e5

don't destroy and clear JNI global for HotSpotJVMCIRuntime singleton object during shutdown as racing compiler threads may still access it
author Doug Simon <doug.simon@oracle.com>
date Mon, 01 Jun 2015 12:29:48 +0200
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);
}