The new G1 collector
The Java community is keen and excited about the Java 9 and its related packages and primary features. Garbage collection is an important Java function, and therefore, it is essential to discuss the new G1 collector that is being promoted in the new package. This takes away from the direction of the previous method of ParallelGC. We will refer to the new collector as the Garbage First Garbage Collector (G1GC) throughout the article.
It is a multithread-capable GC tool and has the ability to work concurrently on different processing threads. The G1GC collector is designed to work with application threads and reduce the pause times, which appear with the use of a garbage collection method.
G1GC is entirely different in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access