r/java • u/-beleon • Oct 24 '26
Allocating Off-Heap Memory: Typically 6-18x Faster in JDK 28
https://inside.java/2026/10/23/confined-pools/
143
Upvotes
r/java • u/-beleon • Oct 24 '26
60
u/kiteboarderni Oct 24 '26
I love how this language is going to be even more applicable to the small number of industries where c++ dominates. Incredible what Java is doing these days. The language is in an amazing place!
13
u/Plenty_Childhood_294 Oct 24 '26
This is because of Arenas. But rolling your own allocator (I am one of the authors of the Netty 4.2 allocator) is still a PITA and only malloc/free naked calls via FFM helps...
6
u/Ok_Marionberry_8821 Oct 24 '26
Excellent engineering. Something for "nothing".
How does FFM performance compare in general to JNI? Just a passing question I won't be needing to use FFM but I did write some JNI eons ago.