The Memory Management Glossary
N

 Contents | News | Glossary | FAQ | Articles | Bibliography | Links | Feedback

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 - Help

Our aim is for these entries to be accurate, comprehensible, and useful, and also to have an entry for all common memory management terms. If you can't find the term you're looking for, if our definition doesn't help you, or if you'd like to suggest corrections or additions, please let us know via our feedback page.

For an explanation of the structure of the entries, and information on how to link to definitions, please see the glossary help page.


natural alignment

Natural alignment is an alignment constraint such that all objects must be aligned to an address that is a multiple of their size.

Natural alignment is not usually required for objects larger than a word or grain, which usually only need to be word- or grain-aligned.

See also: alignment; padding.

nepotism

In generational garbage collection nepotism is the tendency for dead objects in old generations to preserve younger dead objects that are referenced by them. In other words, dead parents can cause their children to get promoted.

This happens when an object gets promoted to an old generation and dies there, but does not get reclaimed because the generation it is in does not get considered for garbage collection very often. The old object might refer to objects in younger generations that are also dead; until the old object is reclaimed the younger objects will be preserved by virtue of the reference from the older, assumed alive, object.

This is a form of floating garbage introduced by partitioning the objects into generations.

next fit

A variant of the first fit allocation mechanism that uses a roving pointer on a circular free block chain. The pointer is advanced along the chain when searching for a fit. Thus each allocation begins looking where the previous one finished. The rationale is to avoid creating an accumulation of small fragments at the head of the free block chain, which would have to be examined on every allocation.

There are several variants, according to the order of blocks on the free block chain. The most common variant is address-ordered next fit.

This has a tendency to spread related objects out in memory, and also gives quite poor locality for the allocator (as the roving pointer rotates around memory, the free blocks touched are those least-recently used).

See also: first fit; allocation mechanism.

Related publications:


node

In a graph, a node is a representation of an object at the junction of zero or more edges.

Opposites: edge.
See also: graph.

nursery generation (for full details, see nursery space)

In generational garbage collection, the nursery generation or space is the area used for new allocation.

nursery space (also known as nursery generation)

In generational garbage collection, the nursery generation or space is the area used for new allocation.

The size of the nursery space must be chosen carefully. Often it is related to the size of physical memory(1).

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 - Help