garbage

package module
v0.0.0-...-d5f2119 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 6 Imported by: 0

README

Garbage Collection

An exploration of the Dijkstra paper that the Go garbage collector is based on.

Documentation

Overview

Garbage is an exploration of the garbage collection technique described in http://dl.acm.org/citation.cfm?id=359655. Dijkstra's method is used by Go's garbage collector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(runTime int, statChan chan Stats)

Start the collector and mutator processes. the mutator is terminated after a time after timeoout, at which point it notifies the collector it's time to finish, via the colTimeOut channel. The collector can't be allowed to finish first becuase the mutator might then get hung on a free node request.

func WaitForSignal

func WaitForSignal()

Types

type Stats

type Stats struct {
	NumPasses     int
	NumFrees      int
	NumFreeRelief int
}

Stats gathered by the collector.

func (Stats) String

func (s Stats) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL