Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core:Rec: Adjust bounds check asserts to not erroneously trip #12459

Merged
merged 1 commit into from
Mar 27, 2025

Conversation

TellowKrinkle
Copy link
Member

Description of Changes

Adjusts some asserts to not trip every time we run out of rec code space
(They should now only trip if we actually start writing out of bounds)

Rationale behind Changes

We shouldn't be tripping asserts during normal operation

Suggested Testing Steps

Play R&C 2 or 3 for a few hours in a Devel build
(Or just pretend you did and say it's fine)

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@F0bes
Copy link
Member

F0bes commented Mar 26, 2025

So the 64kb between recPtrEnd and GetEERecEnd() is there in case we start recompiling a block and it ends up overshooting?

Copy link
Contributor

@TheLastRar TheLastRar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran R&C3 for ~2 hrs (In Devel)
No asserts received

@TellowKrinkle
Copy link
Member Author

So the 64kb between recPtrEnd and GetEERecEnd() is there in case we start recompiling a block and it ends up overshooting?

From what I can tell, yes.

Copy link
Member

@F0bes F0bes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me.

@F0bes F0bes merged commit 6681614 into PCSX2:master Mar 27, 2025
12 checks passed
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.

None yet

3 participants