Garbage collection interface
Improvements to Java's garbage collection did not stop with the major changes in Java 8 and Java 9. In Java 10, a clean garbage collector interface was introduced. The goal for the new interface was to increase the modularity for the internal garbage collection code specific to the HotSpot JVM. The increased modularity will make it easier for the new interface to be updated without negatively impacting core code bases. Another benefit is the relative ease with which garbage collection can be excluded from JDK builds.
Prior to Java 10, the garbage collection implementation was peppered in source code throughout the JVM's file structure. Cleaning this up so that the code is modular is a natural step toward optimizing ...
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