Memory Management Glossary: I
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
immediate data : Immediate data is the representation of a value object as one or more machine words, as a register, or as a field in an instruction.
Immediate data takes its name from the value of the object
being immediately available, rather than requiring a
[load](/u/34ad814de80e6063#term-load) or indirection through a [reference](/u/611c5a77bde93a2f#term-reference).
Similar term
[unboxed](/u/ced5e8494ccaae80#term-unboxed).
Opposite terms
[boxed](/u/4c6aaf4e0e0b7eb6#term-boxed), [pointer](/u/5195e3271b5de55e#term-pointer), [reference](/u/611c5a77bde93a2f#term-reference).immune set : The set of objects which are not condemned.
Opposite term
[condemned set](/u/b107b7d39b75ccb0#term-condemned-set).immutable : In some programming languages, objects of some types are immutable, that is, they cannot be modified. For example, in Standard ML, only arrays and refs are mutable; all other objects are immutable.
This property can be very useful for [garbage
collection](/u/9334865be20dfda3#term-garbage-collection). For instance, no immutable object may contain a
[reference](/u/611c5a77bde93a2f#term-reference) to an object younger than itself, and no
immutable object will appear in a [remembered set](/u/611c5a77bde93a2f#term-remembered-set).
Garbage collectors for these languages often take advantage of
this property.
In lazy languages, the evaluation of an expression may require
an object of a different size, and adjustment of references
may take place. This means that, although objects might be
immutable at the language level, they are not immutable at the
implementation level, and may contain references to younger
objects.
Opposite term
[mutable](/u/367f5f45f9800ccb#term-mutable).
See also
[generational garbage collection](/u/9334865be20dfda3#term-generational-garbage-collection).immutable object : See
[value object](/u/9b6672e5a107d609#term-value-object).in-band header : Also known as
*frame*, *header*.
Some [memory managers](/u/367f5f45f9800ccb#term-memory-manager) [allocate](/u/9b03e2fad7c35ce0#term-allocate)
a fixed amount more than is necessary for each [block](/u/4c6aaf4e0e0b7eb6#term-block)
and use it to store information such as the size of the block
or a [tag](/u/f992775ea91d0285#term-tag). This extra memory is known as an *in-band
header* or a *frame*.
This is a form of [internal fragmentation](#term-internal-fragmentation), although
sometimes, [alignment](/u/9b03e2fad7c35ce0#term-alignment) requirements result in free space
for the header.
Storing control information *in-band* often results in bad
[locality](/u/34ad814de80e6063#term-locality-of-reference), particularly for
[deallocation](/u/b18026a6b8cfa4c8#term-free-1).
Opposite term
[out-of-band header](/u/f63e411ec871b42a#term-out-of-band-header).
See also
[activation frame](/u/9b03e2fad7c35ce0#term-activation-frame), [stack frame](/u/699ff3e2d070663d#term-stack-frame).
In the MPS
In-band headers are supported by some [pool classes](/u/5195e3271b5de55e#term-pool-class)
and the size of the header is specified by passing the
`MPS_KEY_FMT_HEADER_SIZE` [keyword
argument](/u/582bb619f9d3b4b6#term-keyword-argument) to [`mps_fmt_create_k()`](https://www.ravenbrook.com/project/mps/master/manual/html/topic/format.html#c.mps_fmt_create_k).
A pointer to the first word after the in-band header is
called a [client pointer](/u/b107b7d39b75ccb0#term-client-pointer).in parameter : A function parameter that supplies data from the caller to the function. (The usual case in C.)
Opposite term
[out parameter](/u/f63e411ec871b42a#term-out-parameter).in/out parameter : A function parameter that is both an in parameter an out parameter.
In the MPS
In/out parameters are given names ending with `_io`. See
[Interface conventions](https://www.ravenbrook.com/project/mps/master/manual/html/topic/interface.html#topic-interface).incremental garbage collection : Some tracing garbage collection algorithms can pause in the middle of a collection cycle while the mutator continues, without ending up with inconsistent data. Such collectors can operate incrementally and are suitable for use in an interactive system.
Primitive garbage [collectors (1)](/u/9334865be20dfda3#term-garbage-collector),
once they start a [collection cycle](/u/b107b7d39b75ccb0#term-collection-cycle), must either finish
the task, or abandon all their work so far. This is often an
appropriate restriction, but is unacceptable when the system
must guarantee response times; for example, in systems with a
user interface and in real-time hardware control systems. Such
systems might use incremental garbage collection so that the
time-critical processing and the garbage collection can
proceed effectively in parallel, without wasted effort.
Similar term
[parallel garbage collection](/u/5195e3271b5de55e#term-parallel-garbage-collection).
Opposite term
[stop-and-copy collection](/u/699ff3e2d070663d#term-stop-and-copy-collection).
See also
[barrier (1)](/u/4c6aaf4e0e0b7eb6#term-barrier-1), [tri-color marking](/u/f992775ea91d0285#term-tri-color-marking).
Related publications
[Appel et al. (1988)](/u/80406cde1a6844cf#ael88), [Boehm et al. (1991)](/u/80406cde1a6844cf#bds91).
In the MPS
The MPS uses incremental collection, except for
collections started by calling
[`mps_arena_collect()`](https://www.ravenbrook.com/project/mps/master/manual/html/topic/arena.html#c.mps_arena_collect).incremental update : Incremental-update algorithms for tracing, incremental garbage collection note changes made by the mutator to the graph of objects and update the collector (2) state to make it correctly trace the new graph.
In order for the collector to miss a [reachable](/u/611c5a77bde93a2f#term-reachable)
[object](/u/f63e411ec871b42a#term-object), the following two conditions need to hold at
some point during tracing:
1. The mutator stores a [reference](/u/611c5a77bde93a2f#term-reference) to a [white](/u/355fa8e73e689b3a#term-white)
object into a [black](/u/4c6aaf4e0e0b7eb6#term-black) object.
2. All paths from any [gray](/u/9334865be20dfda3#term-gray) objects to that white
object are destroyed.
Incremental-update algorithms ensure the first condition
cannot occur, by painting either the black or the white object
gray (see [Pirinen (1998)](/u/80406cde1a6844cf#pirinen98) for details).
They are so called because they incrementally update the
collector’s view of the graph to track changes made by the
mutator.
Historical note
This distinction between incremental update and
snapshot at the beginning was first introduced for
write-barrier algorithms, but it applies to any type of
tracing algorithm.
Opposite term
[snapshot at the beginning](/u/699ff3e2d070663d#term-snapshot-at-the-beginning).
See also
[barrier (1)](/u/4c6aaf4e0e0b7eb6#term-barrier-1), [strong tri-color invariant](/u/699ff3e2d070663d#term-strong-tri-color-invariant), [tri-color marking](/u/f992775ea91d0285#term-tri-color-marking).
Related publications
[Wilson (1994)](/u/80406cde1a6844cf#wil94), [Pirinen (1998)](/u/80406cde1a6844cf#pirinen98).indefinite extent : An object has indefinite extent if its lifetime is independent of the block or function-call structure of the program.
The [lifetime](/u/34ad814de80e6063#term-lifetime) of such an object can sometimes be
determined by the programmer, and specified by [freeing](/u/b18026a6b8cfa4c8#term-free-1) the object explicitly. This becomes harder to do
correctly as the program becomes more complex, especially if
objects are passed across module boundaries, or if
higher-order functions are used. In some languages it is
impossible to determine the extent at compile-time. In these
situations, a [garbage collector](/u/9334865be20dfda3#term-garbage-collector) can be used to
[recycle](/u/611c5a77bde93a2f#term-recycle) objects whose [lifetime](/u/34ad814de80e6063#term-lifetime) has come to an
end.
Opposite term
[dynamic extent](/u/433f84a577790d37#term-dynamic-extent).indexed fit : A class of allocation mechanisms that use an indexing data structure, such as a tree or hash table, to identify suitable free blocks, according to the allocation policy. For instance, a tree ordered by block size may be used to implement the best fit policy.
See also
[allocation mechanism](/u/9b03e2fad7c35ce0#term-allocation-mechanism), [allocation policy](/u/9b03e2fad7c35ce0#term-allocation-policy), [bitmapped fit](/u/4c6aaf4e0e0b7eb6#term-bitmapped-fit), [sequential fit](/u/699ff3e2d070663d#term-sequential-fit).
Related publication
[Wilson et al. (1995)](/u/80406cde1a6844cf#wil95).indirect method : Indirect methods of automatic memory management are those in which the information necessary to determine whether an object can be reclaimed is not stored in or associated with that object, but is derived from other objects.
Indirect methods detect [garbage](/u/9334865be20dfda3#term-garbage) by [tracing](/u/f992775ea91d0285#term-trace) [reachable](/u/611c5a77bde93a2f#term-reachable) objects.
Indirect methods cannot always reclaim [memory (2)](/u/367f5f45f9800ccb#term-memory-2) as
soon as it becomes [dead](/u/433f84a577790d37#term-dead), because it may be necessary
to inspect many other objects to determine this. However, not
having to store and update information on each object may
reduce the overhead for the [collector (1)](/u/b107b7d39b75ccb0#term-collector-1). In
[distributed garbage collection](/u/433f84a577790d37#term-distributed-garbage-collection), this can reduce the
amount of communication between processors.
Similar term
[tracing garbage collection](/u/f992775ea91d0285#term-tracing-garbage-collection).
Opposite term
[direct method](/u/433f84a577790d37#term-direct-method).
Related publication
[Jones et al. (2012)](/u/80406cde1a6844cf#jones12).infant mortality : See
[generational hypothesis](/u/9334865be20dfda3#term-generational-hypothesis).inline allocation(1) : Allocation of objects by inline code, that is, without calling an allocation function. This is vital for performance in languages that allocate many small objects.
In the MPS
This is achieved by the
[Allocation point protocol](https://www.ravenbrook.com/project/mps/master/manual/html/topic/allocation.html#topic-allocation-point-protocol).inline allocation(2) : Allocation of child objects inside their parent, as opposed to allocating child objects on the heap and storing pointers to them in the parent.
inter-generational pointer : An inter-generational pointer is a reference that is stored in an object in one generation and references an object in another generation.
If the referent’s generation is [condemned](/u/b107b7d39b75ccb0#term-condemned-set) and the referrer’s generation is not, then the reference
is important in two ways. First, the reference keeps the
referent [alive](/u/34ad814de80e6063#term-live), so the referrer must be
[scanned](/u/699ff3e2d070663d#term-scan) during the [collection cycle](/u/b107b7d39b75ccb0#term-collection-cycle).
Second, the reference must always refer to the referent, so if
the referent is moved, then the referrer must be updated.
During a collection, the only objects in non-condemned areas
that must be scanned are the ones that contain
inter-generational pointers. [Generational garbage
collectors](/u/9334865be20dfda3#term-generational-garbage-collection) make use of
[write barriers](/u/355fa8e73e689b3a#term-write-barrier) and data structures like [entry
tables (2)](/u/43d7e4de9473d658#term-entry-table-2), [exit tables](/u/43d7e4de9473d658#term-exit-table), and [remembered sets](/u/611c5a77bde93a2f#term-remembered-set)
to track those objects at run-time.
Inter-generational pointers can cause [floating
garbage](/u/b18026a6b8cfa4c8#term-floating-garbage): even if both referrer and referent die, the
inter-generational pointer will stop the referent from being
reclaimed until the referrer’s generation is condemned.interior pointer : Also known as
*derived pointer*.
An *interior pointer* is a pointer to [memory (2)](/u/367f5f45f9800ccb#term-memory-2)
occupied by an [object](/u/f63e411ec871b42a#term-object) which does not point to the
start location. Also called a *derived pointer* when it’s
derived from a [base pointer](/u/4c6aaf4e0e0b7eb6#term-base-pointer).
A [pointer](/u/5195e3271b5de55e#term-pointer) to an object will usually take as its value
the [address](/u/9b03e2fad7c35ce0#term-address) of the start of that object.
It is common to have interior pointers into string buffers or
to embedded structures. A [suballocator](/u/699ff3e2d070663d#term-suballocator) may place a
[header](#term-in-band-header) at the start of each object
and pass on an interior pointer.
Relevance to memory management
In a system where interior pointers are used, the
[garbage collector](/u/9334865be20dfda3#term-garbage-collector) must be able to [mark](/u/367f5f45f9800ccb#term-marking) an object as [reachable](/u/611c5a77bde93a2f#term-reachable) without being
told the start of the object. In a system where interior
pointers are not used, the collector should either ignore
them (in particular, if it is [scanning](/u/699ff3e2d070663d#term-scan)
[conservatively](/u/b107b7d39b75ccb0#term-conservative-garbage-collection))
and not retain [garbage](/u/9334865be20dfda3#term-garbage) because of them, or
possibly report them as bugs.
Opposite term
[base pointer](/u/4c6aaf4e0e0b7eb6#term-base-pointer).internal fragmentation : Internal fragmentation is where the memory manager allocates more for each allocation than is actually requested. There are three reasons for this: padding; buddy system; in-band headers.
See also
[external fragmentation](/u/43d7e4de9473d658#term-external-fragmentation).invalid page fault : An exception when using virtual memory resulting from an access to a virtual memory location for which no translation is defined.
This is usually an error, often, anachronistically, known as a
[segmentation violation](/u/699ff3e2d070663d#term-segmentation-violation).
Similar term
[bus error](/u/4c6aaf4e0e0b7eb6#term-bus-error).
See also
[page fault](/u/5195e3271b5de55e#term-page-fault).inverted page table
inverted page-table : In a virtual memory system, conventional page tables have an entry for every page in the virtual address space. An inverted page table has only as many entries as there are pages in physical memory (1), and uses a hash lookup to translate virtual addresses to physical addresses in nearly constant time.
The entire virtual address space of each process is described
in an auxiliary structure, typically a B\*-tree, that can
efficiently store contiguous, sparse, or large [address
space](/u/9b03e2fad7c35ce0#term-address-space) descriptions. This auxiliary structure may itself be
paged to avoid permanently consuming [physical memory
(1)](/u/5195e3271b5de55e#term-physical-memory-1) resources.
Inverted page tables are ideal for schemes that store
information about [objects](/u/f63e411ec871b42a#term-object) in the high-order
bits of their [address](/u/9b03e2fad7c35ce0#term-address). Such schemes may perform poorly
with conventional page tables as the sparse address space may
cause the page table structures to become so large as to
compete with the program [working set](/u/355fa8e73e689b3a#term-working-set) for
[physical memory (1)](/u/5195e3271b5de55e#term-physical-memory-1).
Historical note
The [Lisp Machine](/u/884599c4278a5039#term-lisp-machine) was an early workstation that
used an inverted page table with hardware lookup. The
UltraSPARC, PowerPC, and IA-64 architectures all include
inverted page tables. Some implementations of these
architectures have hardware-assisted lookup.is-forwarded method : In the MPS
A [format method](/u/b18026a6b8cfa4c8#term-format-method) that is called by a [moving](/u/367f5f45f9800ccb#term-moving-garbage-collector) [pool](/u/5195e3271b5de55e#term-pool) to determine if a
[formatted object](/u/b18026a6b8cfa4c8#term-formatted-object) is a [forwarding object](/u/b18026a6b8cfa4c8#term-forwarding-object),
and if so, to return the address where the object was
moved to. See [`mps_fmt_isfwd_t`](https://www.ravenbrook.com/project/mps/master/manual/html/topic/format.html#c.mps_fmt_isfwd_t).