Condy? NestMates? Constable? Understanding JDK 11 & 12's JVM features
summary
JDK 11 adds nestHost/nestMembers classfile attributes so the VM treats classes defined together as a nest, removing synthetic access bridges and preventing illegal access exceptions for reflective access that succeeded at compile time. JDK 11 also adds ConstantDynamic via LDC so constants resolve through bootstrap methods (no CallSite or MethodHandle indirection), enabling enum/type/varhandle literals and cheaper noncapturing lambdas. JDK 12 adds java.lang.constant.Constable to describe and canonicalize symbolic constants. OpenJ9 implements a single vtable slot plus constant pool trick to avoid footprint or runtime penalties.
AI-written summary · about
chapters (16)
- 0:00Start
- 1:30Open J9 Jvm
- 2:50Java Nine
- 4:04Time-Based Releases
- 8:01Translation Strategy
- 13:38Nest Members Attribute
- 16:59How Does Invoke Virtual Work
- 21:15Footprint Matters
- 26:32Constant Dynamic
- 33:27Lookup Object
- 34:30Linkage States
- 42:07Non Capturing Lambdas
- 42:52Initialization on Demand
- 43:26Java 9 Introduced Var Handles
- 44:47Jvm Constants
- 47:25Resolve Constant Descriptor
