blob: d7b8044c8c7744cc2ccf39799ca2e9a9e016e354 [file] [log] [blame] [edit]
// Run this with --memory-limited!
//
// This tests for a bug we had on armv7 where we would wrongly re-link
// polymorphic calls every time they are called.
samples = []
for (i=0; i <= testLoopCount; i++) {
samples[i] = i
}
for (i=1; i <= 20; i++) {
//print("ITERATION", i)
//$vm.gc()
samples.forEach(function () {})
}