setMutableSlot

fun setMutableSlot(field: IntegerSlotsEnum, anInteger: Long)

Store the (signed 64-bit) integer in the eight bytes starting at the given field enum value. If the receiver is Mutability.SHARED, then acquire its monitor.

Parameters

field

An enumeration value that defines the field ordering.

anInteger

A Long to store in the indicated slot.


fun setMutableSlot(bitField: BitField, anInteger: Int)

Store the signed 32-bit Int into the specified BitField, trimming upper bits beyond the BitField's size. If the receiver is shared, then use VolatileSlotHelper.compareAndSet to ensure only the intended bits are affected.

Parameters

bitField
anInteger

An Int to store in the indicated slot.


fun setMutableSlot(    field: IntegerSlotsEnum,     subscript: Int,     anInteger: Long)

Store the (signed 64-bit) integer in the eight bytes starting at the given field enum value. If the receiver is shared, then use VolatileSlotHelper.volatileWrite to write the value.

Parameters

field

An enumeration value that defines the field ordering.

subscript

The positive one-based subscript to apply.

anInteger

A Long to store in the indicated slot.


fun setMutableSlot(field: ObjectSlotsEnum, anAvailObject: A_BasicObject)

Store the AvailObject in the specified slot of the receiver, using volatile-write semantics if the receiver is shared.

Parameters

field

An enumeration value that defines the field ordering.

anAvailObject

The object to store at the specified slot.