Skip to content

Use gradual memory growth#5035

Merged
lioncash merged 1 commit intoFEX-Emu:mainfrom
pmatos:fix/gradual-mem-growth
Nov 11, 2025
Merged

Use gradual memory growth#5035
lioncash merged 1 commit intoFEX-Emu:mainfrom
pmatos:fix/gradual-mem-growth

Conversation

@pmatos
Copy link
Copy Markdown
Collaborator

@pmatos pmatos commented Nov 11, 2025

Use min instead of max, otherwise we are always using MAX_STATS_SIZE.

Use min instead of max, otherwise we are always using `MAX_STATS_SIZE`.
@pmatos
Copy link
Copy Markdown
Collaborator Author

pmatos commented Nov 11, 2025

@Sonicadvance1 While trying to track something else I came across this calculation and although I don't understand all the code flow here, I think this should be std::min, otherwise we'll always be changing newsize to be max memory, right?

Copy link
Copy Markdown
Member

@Sonicadvance1 Sonicadvance1 left a comment

Choose a reason for hiding this comment

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

:surprised-pikachu-face:

@lioncash lioncash merged commit 1e3c642 into FEX-Emu:main Nov 11, 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.

3 participants