Setting up the environment
In this chapter, we will be using VisualVM and the Ideal Graph Visualizer to understand how Graal JIT works. This understanding will help us, in the subsequent chapters, to build optimum code with Graal.
Setting up Graal
In Chapter 3, GraalVM Architecture, we discussed the two editions of Graal – Community Edition and Enterprise Edition (EE). Graal Community Edition can be downloaded from the Git repository mentioned in the Technical requirements section, while EE requires you to register with Oracle to download it. EE is available for free for evaluation and non-production applications.
Installing the Community Edition
To install GraalVM Community Edition, go to https://github.com/graalvm/graalvm-ce-builds/releases and download the latest release for the target operating system (macOS, Linux, and Windows). At the time of writing this book, the latest version is 21.0.0.2, with base Java 8 or Java 11 versions. The Community Edition is built...