Class BytecodeSupport.CloneReferenceList<T>

java.lang.Object
com.oracle.truffle.api.bytecode.BytecodeSupport.CloneReferenceList<T>
Enclosing class:
BytecodeSupport

public static final class BytecodeSupport.CloneReferenceList<T> extends Object
Special list to weakly keep track of clones. Assumes all operations run under a lock. Do not use directly. We deliberately do not use an memory intensive event queue here, we might leave around a few empty references here and there.
Since:
24.2
  • Constructor Details

    • CloneReferenceList

      public CloneReferenceList()
  • Method Details

    • add

      public void add(T reference)
      Adds a new reference to the list. Note references cannot be removed.
      Since:
      24.2
    • forEach

      public void forEach(Consumer<T> forEach)
      Walks all references contained in the list.
      Since:
      24.2