On 29/03/2015 13:46, Mike Pall wrote:
The JIT-compiled traces specialize to closures, which in turn keep their upvalues anchored. E.g. save_table and the inner closure in SaveToString. Run jit.flush() once before collectgarbage() to check this is the case. To avoid this, rewrite the code without using transient closures.
Thanks, this helps! -- Shmuel