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

Disable memory reserve allocating #10180

Merged
merged 2 commits into from
Jan 27, 2024

Conversation

Warriorrrr
Copy link
Member

As far as I can tell, the memory that this method reserves is only ever released by the server in one spot, which is unused in paper. By not allocating it we save about 10,5 MB of memory that can then be used elsewhere

@Warriorrrr Warriorrrr requested a review from a team as a code owner January 18, 2024 22:31
@electronicboy
Copy link
Member

This is 100% intentional, this memory will pretty much end up in old gen and not be a real factor towards anything until you hit "oh shit", at which point, it's freed in order to pray that they can close the JVM in a safe and effective™ manner

@electronicboy
Copy link
Member

Then again, the place its used is dumb, I'm not 100% sure on removing this, it's pretty much a pointless slab of memory in which is effectively useless, so it's not a big deal in any manner, not sure, either we remove it or we figure out a manner of effectively using it if needs be

@electronicboy electronicboy reopened this Jan 18, 2024
Copy link
Member

@Owen1212055 Owen1212055 left a comment

Choose a reason for hiding this comment

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

Yeah no, I think that this is fine to have removed. It makes sense on the client as it's used to give some wiggle room for loading world lists and such, which isn't an issue on the server.

@lynxplay lynxplay force-pushed the feat/disable-memory-reserve branch from 6e2aed7 to a215ca1 Compare January 27, 2024 19:02
@lynxplay lynxplay merged commit 0cc3a7e into PaperMC:master Jan 27, 2024
3 checks passed
@Warriorrrr Warriorrrr deleted the feat/disable-memory-reserve branch February 6, 2024 09:40
lynxplay pushed a commit to lynxplay/paper that referenced this pull request Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

5 participants