Class AtomicVariableTable

java.lang.Object
org.jruby.runtime.ivars.AtomicVariableTable

public class AtomicVariableTable extends Object
Shared operations for working atomically with a Ruby object's variable table.
  • 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 variable
      realClass - the "real" class for the object
      fullFence - if a full memory fence should be forced after updating the variable's value
      index - the index of the variable
      value - the variable's value