CacheModelRoundRobin constructor

CacheModelRoundRobin({
  1. required int setCount,
  2. required int waysPerSet,
})

Creates independent round-robin state for each set.

Implementation

CacheModelRoundRobin({required int setCount, required int waysPerSet})
    : _next = List.filled(setCount, 0),
      _ways = waysPerSet {
  if (setCount < 1 || waysPerSet < 1) {
    throw ArgumentError('Replacement geometry must be positive.');
  }
}