Re: luaL_newstate() fails on 64-bit Mac, can't set linker flags

  • From: Mike Pall <mike-1205@xxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 17 May 2012 20:36:13 +0200

Coda Highland wrote:
> Is there any possible way to sidestep this requirement?

Well, hypothetically you could also patch the zero page size in
the main executable.

But once the process is loaded, there's no way to reduce or move
the zero page set up by the kernel (short of patching the OSX
kernel). And since the default zero page blocks the lowest 4GB,
there's no way to allocate memory with 32 bit addresses.

So either run LuaJIT in a separate process and exchange messages
with the plugin or use the 32 bit app on OSX.

--Mike

Other related posts: