Markingbased
Markingbased, often written as marking-based, refers to a class of garbage collection techniques in memory management that determine object liveness by performing a marking pass over the object graph starting from a set of root references. In marking-based collectors, objects are either marked as reachable or unmarked; after marking, unmarked objects are reclaimed either by sweeping their memory or by relocation during a subsequent compaction step.
The core process typically involves two or more phases. The marking phase traverses all references from roots,
Tri-color marking is a formal model frequently associated with marking-based collectors. In this model objects can
Advantages of marking-based collectors include straightforward implementation, applicability to arbitrary object graphs, and the ability to
Markingbased approaches have influenced many language runtimes and are foundational to classic garbage collection designs such