Package org.jruby.runtime.ivars
Class AtomicVariableTable
java.lang.Object
org.jruby.runtime.ivars.AtomicVariableTable
Shared operations for working atomically with a Ruby object's variable table.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
setVariableAtomic
(RubyBasicObject self, RubyClass realClass, boolean fullFence, int index, Object value) Set the given variable index into the specified object using atomic semantics.
-
Constructor Details
-
AtomicVariableTable
public AtomicVariableTable()
-
-
Method Details
-
setVariableAtomic
public static void setVariableAtomic(RubyBasicObject self, RubyClass realClass, boolean fullFence, int index, Object value) Set the given variable index into the specified object using atomic semantics. The "real" class and index are pass in to provide functional access.- Parameters:
self
- the object into which to set the variablerealClass
- the "real" class for the objectfullFence
- if a full memory fence should be forced after updating the variable's valueindex
- the index of the variablevalue
- the variable's value
-