Post · 4 min read· pp. 175–177

Memory Management Glossary: U

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

unaligned : Also known as

code
*misaligned*.

An [address](/u/9b03e2fad7c35ce0#term-address) is unaligned or misaligned if it does not
comply with some [alignment](/u/9b03e2fad7c35ce0#term-alignment) constraint on it.

For example, typically double precision floating point numbers
occupy 8 [byte (1)](/u/4c6aaf4e0e0b7eb6#term-byte-1) and have an alignment of 4 bytes;
that is, their address must be a multiple of four. If a
program tries to access such a number using an address that is
not a multiple of four, a [bus error](/u/4c6aaf4e0e0b7eb6#term-bus-error) may result,
depending on the processor architecture and instruction used.

Opposite term

[aligned](/u/9b03e2fad7c35ce0#term-alignment).

See also

[alignment](/u/9b03e2fad7c35ce0#term-alignment), [bus error](/u/4c6aaf4e0e0b7eb6#term-bus-error).

unboxed : Unboxed objects are represented by an encoding of the data itself, and not by a pointer to that data.

code
Representations are typically chosen so that unboxed values
are the same size as the pointer part of a [boxed](/u/4c6aaf4e0e0b7eb6#term-boxed)
object. Sometimes the value is [tagged](/u/f992775ea91d0285#term-tag) to
distinguish it from a boxed object. The entire object is
duplicated when the object is passed around, so updates to it,
if allowed, only affect one copy.

Similar term

[immediate data](/u/7010622dc3b8d8f9#term-immediate-data).

Opposite term

[boxed](/u/4c6aaf4e0e0b7eb6#term-boxed).

Related publication

[Gudeman (1993)](/u/80406cde1a6844cf#gudeman93).

unclamped state : In the MPS

code
One of the four states an [arena](/u/9b03e2fad7c35ce0#term-arena) can be in (the
others being the [clamped state](/u/b107b7d39b75ccb0#term-clamped-state), the [parked
state](/u/5195e3271b5de55e#term-parked-state) and the [postmortem state](/u/5195e3271b5de55e#term-postmortem-state)). In the unclamped
state, object motion and other background activity may
occur. Call [`mps_arena_release()`](https://www.ravenbrook.com/project/mps/master/manual/html/topic/arena.html#c.mps_arena_release) to put an arena
into the unclamped state.

undead : An undead object is an object that cannot be proven to be dead by the garbage collector, but whose liveness is dubious.

code
For example, an [ambiguous reference](/u/9b03e2fad7c35ce0#term-ambiguous-reference) to an object on a
[page](/u/5195e3271b5de55e#term-page) may mark the entire page as [reachable](/u/611c5a77bde93a2f#term-reachable). No
further data is collected about that page. The other objects
on the page will survive, even though their reachability has
not been determined. They are *undead*.

unmapped : Also known as

code
*free*.

A range of [virtual addresses](/u/9b6672e5a107d609#term-virtual-address) is said
to be *unmapped* (*free* on Windows) if there is no
[physical memory (2)](/u/5195e3271b5de55e#term-physical-memory-2) associated with the range.

An unmapped range may or may not be [reserved](/u/611c5a77bde93a2f#term-reserved).

Opposite term

[mapped](/u/367f5f45f9800ccb#term-mapped).

unprotected : A region of memory (2) is said to be unprotected if there are no barriers (1) on that region.

code
Opposite term

[protected](/u/5195e3271b5de55e#term-protected)

unreachable : An object is unreachable if there is no reference chain to it from any root.

code
An object will become unreachable when the [mutator](/u/367f5f45f9800ccb#term-mutator)
overwrites its last (direct or indirect) reference to the
object.

Similar term

[dead](/u/433f84a577790d37#term-dead).

Opposite terms

[live](/u/34ad814de80e6063#term-live), [reachable](/u/611c5a77bde93a2f#term-reachable).

See also

[garbage collection](/u/9334865be20dfda3#term-garbage-collection).

unsure reference : See

code
[ambiguous reference](/u/9b03e2fad7c35ce0#term-ambiguous-reference).

unwrapped : Also known as

code
*raw*.

A value is *unwrapped* or *raw* if it is not encoded with type
information.

In a dynamically-typed language, the compiler may sometimes be
able to pick a more compact or efficient representation for a
value if it can prove that the type can be determined at
compile-time. This is a particularly useful optimization for
numeric values such as integers or floats.

Opposite term

[wrapped](/u/355fa8e73e689b3a#term-wrapped).

See also

[boxed](/u/4c6aaf4e0e0b7eb6#term-boxed), [tag](/u/f992775ea91d0285#term-tag), [value object](/u/9b6672e5a107d609#term-value-object).

Related publication

[Gudeman (1993)](/u/80406cde1a6844cf#gudeman93).

use after free : See

code
[premature free](/u/5195e3271b5de55e#term-premature-free).