Chat, I may have actually figured it out.
Problem Is I remember doing this (just using malloc or calloc) and it not working, LuaJIT would always GC the object. But it's been working for a few minutes now when it should have garbage-collected everything in a few seconds if it didn't. I don't know why it works, I think because it's just calls to C and not to Lua, but it does.
Fuck it, ship it.









