Jump to content

User:Trustable/Memory management

From Wikipedia, the free encyclopedia

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

Manual memory management

[edit]

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

Cons:

Tracing garbage collection

[edit]

Used by:

Cons:

  • Runtime costs

Reference counting with tracing garbage collection

[edit]

The tracing part is needed for cycle detection.

Used by:

Cons:

  • Runtime costs

Reference counting with ownership

[edit]

Used by:

Cons:

  • Runtime costs
[edit]