Skip to content

codegen/new: deterministic round-robin block eviction#7081

Merged
Cacodemon345 merged 1 commit into
86Box:masterfrom
ChrisDeadman:deterministic-round-robin-block-eviction
Apr 21, 2026
Merged

codegen/new: deterministic round-robin block eviction#7081
Cacodemon345 merged 1 commit into
86Box:masterfrom
ChrisDeadman:deterministic-round-robin-block-eviction

Conversation

@ChrisDeadman

Copy link
Copy Markdown
Contributor

Summary

Replace rand()-based block eviction with a static round-robin probe. This avoids non-deterministic JIT code layouts, and avoids cases where rand() repeatedly targets hot blocks.

Checklist

  • Closes N/A
  • I have tested my changes locally and validated that the functionality works as intended
  • I have discussed this with core contributors already
  • This pull request doesn't require changes to the ROM set
  • This pull request doesn't require changes to the asset set

Replace rand()-based block eviction with a static round-robin probe.
This avoids non-deterministic JIT code layouts, and avoids cases
where rand() repeatedly targets hot blocks.
@Cacodemon345 Cacodemon345 merged commit bd7c216 into 86Box:master Apr 21, 2026
45 checks passed
@ChrisDeadman ChrisDeadman deleted the deterministic-round-robin-block-eviction branch June 4, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants