mutableSlot

fun mutableSlot(field: IntegerSlotsEnum): Long

Extract the (signed 64-bit) integer for the given field enum value, using volatile-read semantics if the receiver is shared.

Return

A Long extracted from this object.

Parameters

field

An enumeration value that defines the field ordering.


fun mutableSlot(bitField: BitField): Int

Extract an integer (at most 32 bits) from the given BitField. If the receiver is shared, then acquire its monitor.

Return

An Int extracted from this object.

Parameters

bitField

A BitField for accessing the object.


fun mutableSlot(field: IntegerSlotsEnum, subscript: Int): Long

Extract the (signed 64-bit) integer at the given field enum value. If the receiver is shared, then use VolatileSlotHelper.volatileRead to acquire the value.

Return

A Long extracted from this object.

Parameters

field

An enumeration value that defines the field ordering.

subscript

The positive one-based subscript to apply.


fun mutableSlot(field: ObjectSlotsEnum): AvailObject

Extract the object at the specified slot of the receiver. If the receiver is shared, then acquire its monitor.

Return

The object found at the specified slot in the receiver.

Parameters

field

An enumeration value that defines the field ordering.


fun mutableSlot(field: ObjectSlotsEnum, subscript: Int): AvailObject

Extract the AvailObject at the specified slot of the receiver, using volatile-read semantics if the receiver is shared.

Return

The object found at the specified slot in the receiver.

Parameters

field

An enumeration value that defines the field ordering.

subscript

The positive one-based subscript to apply.