- Heap is allocated with
mmapand is aligned toHEAP_MAX_SIZE, defined to be2 * DEFAULT_MMAP_THRESHOLD_MAX.DEFAULT_MMAP_THRESHOLD_MAXis4*1024*1024*sizeof(long)on 64-bit systems, which is0x2000000, so the per-thread heap that's mmap'd will always be aligned to0x4000000.