Z Garbage Collector

$72.99

Taxes may apply at checkout.

Z Garbage Collector

In JDK 25

Information technology: general topics Algorithms and data structures Programming and scripting languages: general Software Engineering Computer science

Author: Erik Osterlund

Dinosaur mascot

Language: English

Published by: Chapman and Hall/CRC

Published on: 22nd May 2026

Format: LCP-protected ePub

ISBN: 9781040688410


Introduction

This book explains how the Z Garbage Collector was designed, why it was designed this way, the common pitfalls to avoid when using ZGC in JDK 25 and how to get useful information from the garbage collector.

Java and Garbage Collection

Java is one of the most widely used programming languages in the world. It is a memory-safe language that completely relies on a good garbage collection (GC) algorithm to work well. The Z Garbage Collector of OpenJDK is arguably the most sophisticated production GC algorithm for any managed language runtime.

Core Concepts of ZGC

The book goes into detail and covers core algorithm concepts of ZGC: coloured pointers, GC barriers, concurrent marking, concurrent relocation, concurrent stack scanning, concurrent root scanning, concurrent class unloading, concurrent generational collection, as well as showing how all of this works. It explains how the JVM evolved certain features to be able to accommodate ZGC, and covers the importance of each of the various GC heuristics and how they function.

Audience and Utility

With a unique angle right between academia and industry, this book is useful for computer science students and Java developers alike.

Show moreShow less