This presentation was recorded at GOTO Copenhagen 2023. #GOTOcon #gotocph
Evgeny Mandrikov - Software Gardener, Language Team Technical Leader at SonarSource @EvgenyMandrikov
RESOURCES
ABSTRACT
New JVM features now arrive with each JDK release. If you are interested to learn and try these new features and wanna know-how in case of problems investigate and report JVM crashes, then come to listen about its new feature introduced in Java 11 - Constant Dynamic.
During this talk, we’ll see what actually means dynamic constant and why it is such a powerful addition to JVM. We’ll also see how little holes in implementation were causing JVM crashes in OpenJ9 and OpenJDK 11-14, and how by developing JaCoCo we find and report such bugs - you also can! [...]
TIMECODES
00:00 Intro
01:15 JaCoCo (Java Code Coverage)
02:45 Real disclaimer
03:41 invokedynamic aka INDY
06:59 Java 11: Dynamic class-file constants
08:25 Original class
09:03 Instrumented class
13:24 Demo
36:25 Non-capturing lambdas
38:36 Enum constants
42:07 Enum switch
49:49 Good singleton factory
51:29 Lazy static final fields
52:04 There is more
52:32 Takeaways
55:41 Outro
Read the full abstract here:
RECOMMENDED BOOKS
Kevlin Henney & Trisha Gee • 97 Things Every Java Programmer Should Know •
Markus Eisele & Natale Vinto • Modernizing Enterprise Java •
Joshua Bloch • Effective Java •
Thomas Vitale • Cloud Native Spring in Action •
Josh Long • Reactive Spring •
#DynamicConstants #JaCoCo #JavaCodeCoverage #JVM #Java11 #Java #OpenJ9 #OpenJDK #Enum #Programming #SoftwareEngineering #SonarSource #EvgenyMandrikov
Looking for a unique learning experience?
Attend the next GOTO conference near you! Get your ticket at
Sign up for updates and specials at
SUBSCRIBE TO OUR CHANNEL - new videos posted almost daily.
1 view
0
0
1 month ago 00:01:23 1
Samuel Maykapar - Valse Mélancolique Op. 16, No. 11
1 month ago 00:20:31 1
Johann Sebastian Bach - Organ Concerto in A minor, BWV 593 (Arr. August Stradal)
1 month ago 00:51:50 1
Mind-Blowing Theories on Nothingness You Need to Know | Documentary