Module rc

Module rc 

Source
Expand description

Reference counting support.

Structs§

RefCountHelper
A zero-sized helper type providing methods to read and update per-object reference count metadata for LXR’s reference counting plan.

Constants§

LOG_MIN_OBJECT_SIZE
Log2 of the minimum object size, i.e. the granularity at which reference counts are tracked.
LOG_REF_COUNT_BITS
Log2 of the number of bits used to store each object’s reference count in the RC table.
MAX_REF_COUNT
The maximum representable reference count. Once an object’s count reaches this value it is treated as saturated/sticky and is no longer incremented or decremented.
MIN_OBJECT_SIZE
The minimum object size, i.e. the granularity at which reference counts are tracked.
RC_STRADDLE_LINES
Side metadata recording which Immix lines are “straddled” by an object that spans multiple lines, so straddling objects can be identified without scanning their contents.
RC_TABLE
Side metadata spec for the per-object reference count table.
REF_COUNT_BITS
Number of bits used to store each object’s reference count in the RC table.
REF_COUNT_MASK
Bit mask covering the bits used to store a reference count.

Statics§

FAST_NURSERY_INCS 🔒
INC_BUFFER_SIZE 🔒
LOS_INCS 🔒
MATURE_INCS 🔒
NURSERY_INCS 🔒
PROMOTED_OBJECTS 🔒
PROMOTED_OBJECT_ARRAYS 🔒
PROMOTED_PRIM_ARRAYS 🔒
PROMOTED_SCALARS 🔒
ROOT_INCS 🔒
TOTAL_INCS 🔒
TOTAL_INCS_PACKETS 🔒