Escape Analysis and Scalar Replacement: Why Some Objects Never Touch the Heap
Small, verifiable before and after code examples showing what helps, or defeats, the JIT’s ability to keep an object off the heap entirely. HotSpot does not actually allocate objec...