Java 10 Features | Parallel Full GC for G1 | Introduction to Java 10 | Techonica

preview_player
Показать описание
Parallel Full GC for G1 - Java 10 New Features.

Improvement in the performance of G1 Garbage Collector for the Java 10. G1 was made the default Garbage Collector in JDK 9. G1 was Introduced in JDK 7.

What it does ?

It efficiently and concurrently deal with very large heaps

Normal GC would divide the heap into young (eden and survivor) and old generation (logical separation)

G1 splits heap into many small regions.

This splitting enables G1 to select a small region to collect and finish quickly

But G1 Fails on Full Garbage Collection. (Not Optimal)

G1 is designed to avoid full garbage collections

But sometimes full garbage collection is inevitable.

Why it is not good at full GC?

Because till JDK 9, G1 uses single thread for full GC.

And Now, in JDK 10, the latest java release G1 uses multi-thread (parallel) for full GC. So now in Java 10, the performance of the G1 Garbage Collector is improved. This is one of the major Java 10 features. So the G1 garbage collector Java 10 has higher performance that G1 garbage collector Java 9.

For Installing, the Java 10 64 bit or Java 10 32 bit, visit the official Oracle website and download.

Рекомендации по теме