* Dmitri Shubin: >>> To support LuaJIT on Solaris 64-bit I had to do the similar thing -- >>> use custom page allocator for low 2GiB of address space. >>> (mmap() on Solaris doesn't have MAP_32BIT flag and doesn't honor >>> address hint) >> According to various sources, it's fixed in Solaris 11. > > Thank you for pointing this out. > I tested it and it indeed works. > However we're currently use Solaris 10. Hotspot has an algorithm to search for a suitable mapping. Perhaps you can describe the algorithm on the list, so that someone else can implement it from scratch?