Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Garbage collection, mark and sweep, tri-colour invariant » ?

Aussi appelé : garbage collection · mark and sweep · tri-colour invariant

Definition 9.5 University Computer Science — Year 3 · Chapitre 9 — Memory Management and Garbage Collection

Garbage collection is the automatic freeing of garbage. A mark-and-sweep collector marks every object reachable from the roots, then sweeps the whole heap and frees every object left unmarked. During marking, an object is white if not yet reached, grey if reached but its references not yet examined, black if reached and all its references examined. The tri-colour invariant says that no black object refers to a white one.

Lire dans le chapitre →