Re: Garbage collection test case

  • From: Shmuel Zeigerman <shmuz@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 31 Mar 2015 15:57:49 +0300

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

Other related posts: