Re: Bytecode differences between v1 and v2?

  • From: Petri Häkkinen <petrih3@xxxxxxxxx>
  • To: luajit <luajit@xxxxxxxxxxxxx>
  • Date: Wed, 6 Jan 2021 10:53:41 +0200


On 2 Jan 2021, at 23.17, Mike Pall <mikelj-2101@xxxxxxx> wrote:

Maybe that's a misunderstanding of what the GC64 change does. I doubt
you're using anywhere near 2 GB of Lua (!) objects. Whatever you
allocate from the C side with malloc etc. does not count towards that.

Yeah, I know. Low-memory allocations by other systems (e.g. graphics resources) 
has been the real problem in the past. At least on Mac OS it was a really nasty 
problem. It's hard to say if this problem still exists without running 
extensive tests on different OSes, drivers, etc...

Preallocating memory for LuaJIT (i.e. modifying the custom memory allocator) 
would probably be the safest solution.

I have to think about it and do some more testing.

Petri


Other related posts: