You can use the ZGC with Java 11 and with Linux/x64 systems. ZGC is an experimental GC. All of the code in this chapter can be accessed by going to this book's GitHub repository at: https://github.com/PacktPublishing/Java-11-and-12-New-Features.
Let's get started by assessing why we need ZGC.