Re: Sysmalloc on OSX 64-bit

  • From: Karel Tuma <kat@xxxxxx>
  • To: luajit <luajit@xxxxxxxxxxxxx>
  • Date: Mon, 20 Oct 2014 19:32:15 +0200

Excerpts from Dan Nilsson's message of 2014-10-20 17:41:06 +0200:
> should be doable, but I have encountered a problem:
> 
> Luajit on OSX 64-bit says to link with:
>     -pagezero_size 10000 -image_base 100000000

munmap(0,1LL<<32) (this is the default, figure out __PAGEZERO
at runtime to make it robust).

> =>  #error "Must use builtin allocator for 64 bit target
> 
> Would it be asking for trouble to just ignore this and remove the #error
> so I can build it with sysmalloc anyway?

Don't.

> What is the reason for this requirement?

Pointers must fit 32 bits, and speed.

K.

Other related posts: