Chapter 4: Graal Just-In-Time Compiler
In Chapter 3, GraalVM Architecture, we went through the GraalVM architecture and the various components that constitute it. We went through some details of the GraalVM Polyglot architecture with Truffle and touched upon the Graal's just-in-time (JIT) compiler. We looked at how Graal JIT plugs into the Java Virtual Machine by implementing the Java Virtual Machine Compiler Interface. In this chapter, we will explore how the Graal JIT compiler works by running sample code and visualizing the Graal graphs and optimizations that Graal JIT performs, using the Ideal Graph Visualizer tool.
In this chapter, we will cover the following topics:
- Setting up the environment
- Understanding the Graal JIT compiler
- Understanding Graal compiler optimizations
- Debugging and monitoring applications
By the end of the chapter, you will have a very clear understanding of how Graal JIT compilation works, understand the various optimization...