Java Lied to You About Memory. Value Classes Are the Apology.
Java promised us a Sufficiently Smart Compiler that would handle low-level memory details automatically. It lied. With the introduction of Value Classes, Java is finally admitting that its escape analysis can’t be trusted. Now, developers are left doing the compiler’s homework, manually annotating semantics just to get predictable performance.