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 344 fois
Modifier
4
Évaluations de la communauté
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 :)
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.
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
Questions similairesPlus de questions sur Java
13
Combien de fois la condition `(a++ < 15)` est-elle évaluée dans le code suivant ?
```java
int a = 3;
while (a++ < 15) {
if ((a++ % 5) == 0)
break;
}
```10
Un moniteur en Java9
La sérialisation peut être personnalisée avec l'interface Externalizable8
Que signifie le mot-clé final devant une méthode en Java?8
Quel "design pattern" permet d'offrir un moyen de traiter les éléments d'un arbre sans se soucier du parcours?