User:Trustable/Memory management

From WikiProjectMed
Jump to navigation Jump to search

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

External Links