Altough the concept of “final“ fields is quite simple, its implementation in Java can lead to surprising effects. First of all, the Java VM and Java language have a slightly different understanding of “final“. Second (and unfortunately) declaring a field as final doesn’t mean that the VM or the programmer can really rely on its immutability.
This talk will show the differnt aspects of “finality“ and their impact on the Java compiler and the Java VM. It will demonstrate how finality can be circumvented in Java with the help of reflection or . And finally it will discuss the impacts this has on the optimzations done by the JIT compiler.
100 views
4370
1523
3 years ago 01:12:07 2
Interview and Q&A with James Gosling
4 years ago 00:07:08 5
Simone Kermes - Les oiseaux dans la charmille (Симона Кермес - ария Олимпии)
6 years ago 00:57:18 1
Volker Simonis — HotSpot Intrinsics
6 years ago 00:57:16 1
Class Data Sharing in the HotSpot VM (Volker Simonis, Germany)
7 years ago 00:59:37 1
Volker Simonis — Heart Surgery: HotSpot Debugging at the OS Level
7 years ago 00:48:37 1
Packed Objects, Object Layout & Value Types — a — Survey Volker Simonis
7 years ago 00:52:37 1
Круглый стол. Будущее Java-платформы – Иван Крылов, Владимир Иванов, Volker Simonis, Никита Липский
7 years ago 00:55:38 1
Volker Simonis — HotSpot Internals: Safepoints, NullPointers and StackOverflows