CacheModelRoundRobin class

Round-robin replacement which prefers invalid ways.

Implemented types
Annotations

Constructors

CacheModelRoundRobin({required int setCount, required int waysPerSet})
Creates independent round-robin state for each set.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

access(int set, int way) → void
Records a successful access to an existing way.
override
allocate(int set, int way) → void
Records allocation of a way for a previously absent block.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets all replacement state.
override
restoreSnapshot(Object image) → void
Replaces the state with an already validated image.
override
select(int set, List<bool> valid) → int
Selects a way in set given the current validity of its ways.
override
snapshotReplacement() → Object
Captures the complete replacement state.
override
toString() → String
A string representation of this object.
inherited
validateSnapshot(Object image) → void
Rejects an image that cannot be restored by this policy.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited