User:Trustable/Memory management

Source: Wikipedia, the free encyclopedia.

This page should explain different techniques of Memory management in programming languages.

Manual memory management

E.g. malloc() and free() in C.

Cons:

Tracing garbage collection

Used by:

Cons:

  • Runtime costs

Reference counting with tracing garbage collection

The tracing part is needed for cycle detection.

Used by:

Cons:

  • Runtime costs

Reference counting with ownership

Used by:

Cons:

  • Runtime costs