static void addCap(RingBuffer.Sequence sequence,long toAdd){
  long u, r;
  do {
    r=sequence.getAsLong();
    if (r == Long.MAX_VALUE) {
      return;
    }
    u=Operators.addCap(r,toAdd);
  }
 while (!sequence.compareAndSet(r,u));
}

static void addCap ( RingBuffer . Sequence sequence , long toAdd ) { long u , r ; do { r = sequence . getAsLong ( ) ; if ( r == Long . MAX_VALUE ) { return ; } u = Operators . addCap ( r , toAdd ) ; } while ( ! sequence . compareAndSet ( r , u ) ) ; }
concurrent addition bound to long . max_value . any concurrent write will " happen " before this operation .
