The program does basically nothing, just counting a few variables up and down, and it calls a bunch of empty functions. The only thing that should produce garbage is the display of the garbage counter.
If you press space, the garbage stops piling up. The difference is this:
Code: Select all
-- lots of garbage
updateStepper2()
updateStepper1()
-- no garbage
updateStepper1()
updateStepper2()
You can also make it stop by removing this part from the code:
Code: Select all
ops[0] = function() end
ops[1] = function() end
ops[2] = function() end
...
Maybe someone here can tell me what LuaJIT's problem with this is. I'm out of ideas.