Catch PANIC: unprotected error in call to Lua API (not enough memory) event?

  • From: Cheyi Lin <cheyi.lin@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Tue, 12 Nov 2013 11:54:26 +0800

Hi,

I'm testing LuaJIT 1G memory limit (v2.0.2 x86_64) and got expected "PANIC:
unprotected error in call to Lua API (not enough memory)"
when collectgarbage("count") reports about 926599.

To prevent process crash, how could I catch the "not enough memory" event?


Regards,
Cheyi Lin

Other related posts: