Two major approaches to management of memory that is dynamically allocated.
-
Explicit management by programmer - programmer must return no longer useful
data values to memory management system. (C++, Object Pascal)
-
Implicit management by run-time system - system detects when memory values
are no longer being used and automatically recovers storage. (Smalltalk, Java)