Re: Bytecode differences between v1 and v2?

  • From: Mike Pall <mikelj-2101@xxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sat, 2 Jan 2021 22:17:04 +0100

Petri Häkkinen wrote:

On 2 Jan 2021, at 14.19, Mike Pall wrote:
But why not disable GC64 on x64?

One of the reasons for the 64-bit port is to get rid of the 2 GB memory limit

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.

2. Is a custom memory allocator for LuaJIT the recommended way to workaround 
other resources (e.g. textures) stealing memory from low-memory areas?

Is this still an issue on Windows in practice, though? I was under
the impression C resources get allocated on random (higher) addresses
due to OS and MSVC hardening in recent years.

--Mike

Other related posts: