class Concurrent::Collection::AtomicReferenceMapBackend

def try_in_resize_lock(current_table, size_ctrl)

def try_in_resize_lock(current_table, size_ctrl)
  if cas_size_control(size_ctrl, NOW_RESIZING)
    begin
      if current_table == table # recheck under lock
        size_ctrl = yield # get new size_control
      end
    ensure
      self.size_control = size_ctrl
    end
  end
end