class Concurrent::Collection::AtomicReferenceMapBackend

def table_size_for(entry_count)

Returns a power of two table size for the given desired capacity.
def table_size_for(entry_count)
  size = 2
  size <<= 1 while size < entry_count
  size
end