Skip to content
/ gc-go Public

simple implementation of GC three color marking algorithm in golang

Notifications You must be signed in to change notification settings

Raezil/gc-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Garbage collector three color marking.

Object has references of objects and colour. Initialy root object starts being gray, those objects on heap starts as white.

Black objects are reachable, gray objects are gonna be processed in the future and white objects are unreachable.

Algorithm traverses through references of object, changing those objects' colours to gray. Once every object in the reference is gray, the main object becomes black. It continues to the moment there are no more gray objects to proceed. White objects that left on heap are gonna be collected by garbage collector.

About

simple implementation of GC three color marking algorithm in golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages