lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Mike Pall <mikelu-0908 <at> mike.de> writes:

> 
> Mark Hamburg wrote:
> >> Most of the LJ2 VM is already "64 bit ready". E.g. it has an
> >> arch-independent 32 bit pointer abstraction for all GC objects.
> >
> > Handles? A limited range 64-bit pointer?
> 
> 32 bit pointers on a 64 bit system. 
> 
> They just have to reside in the lowest 4 GB (actually it's more
> efficient to only use the lowest 2 GB). That's easy to guarantee
> since LJ2 already uses a (much faster) bundled memory allocator.
> You can turn it off in 32 bit mode, but not in 64 bit mode.

Interesting, how does this coexist with malloc()?  Are you calling
brk or mmap to get your memory?

Josh