Chapter 7. Leveraging the New Default G1 Garbage Collector
In the previous chapter, we examined Java Shell (JShell), Java 9's new read-eval-print loop (REPL) command-line tool. We started with introductory information regarding the tool and looked closely at the read-eval-print loop concept. We spent considerable time reviewing JShell commands and command-line options. Our coverage included practical guides to feedback modes, asset listing, and editing in the shell. We also gained experience working with scripts.
In this chapter, we will take an in-depth look at garbage collection and how it is handled in Java 9. We will start with an overview of garbage collection, and then look at specifics in the pre-Java 9 realm. Armed with that foundational information, we will look at specific garbage collection changes in the Java 9 platform. Lastly, we will look at some garbage collection issues that persist, even after Java 9.
The following topics are covered in this chapter:
- Overview of garbage collection...