Re: Bytecode differences between v1 and v2?
- From: Petri Häkkinen <petrih3@xxxxxxxxx>
- To: luajit <luajit@xxxxxxxxxxxxx>
- Date: Sat, 2 Jan 2021 20:48:05 +0200
On 2 Jan 2021, at 14.19, Mike Pall <mikelj-2101@xxxxxxx> 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,
but I guess that's one option to explore, if bytecode patching is too
problematic.
Couple of questions:
1. Is the memory limit for x64 2 GB or 4 GB these days?
2. Is a custom memory allocator for LuaJIT the recommended way to workaround
other resources (e.g. textures) stealing memory from low-memory areas?
Basically I would need to preallocate a large memory block from the low-memory
area at startup, say 500 MB, to guarantee that LuaJIT never runs out of memory.
Petri
Other related posts: