Question du test Java

Le Garbage Collector G1(ou Garbage First) est un GC qui organise la heap d'une manière

Difficile

Le Garbage Collector G1 (ou Garbage First) est un GC qui organise la heap de manière

Auteur: LoïcStatut : PubliéeQuestion passée 335 fois
Modifier
4
Évaluations de la communauté
developer avatar
Dumitru
28/02/2024
If you read this: https://www.oracle.com/technical-resources/articles/java/g1gc.html it clearly says generational: "The Garbage First Garbage Collector (G1 GC) is the low-pause, server-style generational garbage collector for Java HotSpot VM. " so I do not agree with my grade. And what the bip means hemispherical region in memory (do we have 3D memory) cmon :)
developer avatar
Loïc
29/02/2024
It is indeed generational, but it is also hemispheric as each region has the same size and when a collection of a region is done, the remaining objects of the region are copied to a new region and the source region is emptied. Hemispherical heap region is a GC term used also for the survivors of serial GC and parallel GC so it's in thing in GC world.
developer avatar
Dumitru
29/02/2024
Still you have to admit it is generational. and I insist that hemispherical in memory management has no sens. As hemispherical means half of a sphere. Which suppose we would have only two generations or memory regions would kinda be logical. But we have four according to Oracle: eden, young generation, old and humongous. More to my argument is that I do not find it in Oracle doc pages. Check this too: https://www.oracle.com/technical-resources/articles/java/g1gc.html