HotSpot Internals: Safepoints, NullPointers and StackOverflows
summary
Explains how the HotSpot JVM implements safepoints, null-pointer checks and stack-overflow detection, using small Java examples and showing down to bytecode and assembly. Covers safepoint mechanics and efficient entry (including JNI/native interactions), implicit and explicit null-check implementations (OS signal/page-fault techniques, issues with compressed oops and field-offset limits, platform-specific trap behavior), and stack-overflow strategies (stack-banging, guard pages, native-call issues and JEP 270 reserved stack areas).
AI-written summary · about
related talks
54mJava performance techniques The cost of HotSpot runtime optimizations
29mHow (Not) To Write Java Pointer Analyses After 2020
46mAnalyzing HotSpot Crashes
01h 02mVM Design Choices
55mThe Performance Engineer's Guide To Java HotSpot
41mAn Introduction to JVM Performance
01h 01mAn Introduction to JVM Performance
59mAn Introduction to JVM Performance
