Lab 02: GraalVM & Polyglot
Overview
Step 1: AOT vs JIT — The Core Tradeoff
Traditional JIT (HotSpot):
Source → Bytecode → Interpreter → JIT Profile → C2 Optimized
Startup: slow, Peak throughput: very high, Memory: moderate
GraalVM Native (AOT):
Source → Bytecode → GraalVM Compiler → Native Binary
Startup: <50ms (no JVM bootstrap), Memory: -60%, Throughput: lower peak
GraalVM JIT (Graal compiler on JVM):
Same as HotSpot but uses Graal C++ → Java compiler
Better partial escape analysis, speculative optimizationsMetric
HotSpot JIT
GraalVM Native
Step 2: GraalVM Compiler Architecture
Step 3: SubstrateVM Reflection Configuration
Step 4: Truffle Language Framework Concepts
Step 5: Polyglot API Concepts
Step 6: ScriptEngine Fallback on Temurin
Step 7: Native Image Build Process
Step 8: Capstone — AOT Tradeoffs Analysis
Summary
Concept
Technology
Key Points
Last updated
