3 ms·
Java has effectively a non-tearing guarantee for pointers. Regarding performance and alignment, Java pointers are commonly 32-bit even on 64-bit Java, due to co
by layer8 3y ago
Java has effectively a non-tearing guarantee for pointers. Regarding performance and alignment, Java pointers are commonly 32-bit even on 64-bit Java, due to compressed pointer representation. (Java objects are always aligned to 8-byte or 16-byte boundaries, so the bottom 3 or 4 bits of a pointer can be shifted out, resulting in 8 or 16 times the normal 32-bit address space. IIRC there are even more variations regarding the Java pointer model.)
- spacechild1 3y ago> resulting in 8 or 16 times the normal 32-bit address space That would still impose a 64 GB memory limit. How does this work?
- hashmash 3y agoCompressed pointers are disabled if the max heap is larger than 32GB.