Skip to content

Fix a rare crash with a concurrent modification of a set#12002

Merged
electronicboy merged 2 commits into
PaperMC:mainfrom
AverageGithub:crash-fix
Jan 22, 2025
Merged

Fix a rare crash with a concurrent modification of a set#12002
electronicboy merged 2 commits into
PaperMC:mainfrom
AverageGithub:crash-fix

Conversation

@AverageGithub
Copy link
Copy Markdown
Contributor

@AverageGithub AverageGithub commented Jan 22, 2025

This PR attempts to fix an issue introduced in CraftBukkit 5 years ago in fcfcbd3 (how did noone catch this??)

Relevant part of a crash report: https://pastes.dev/cKg6BswffG (1.21.3 server - but it does not matter here)

@AverageGithub AverageGithub requested a review from a team as a code owner January 22, 2025 18:34
Comment thread paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java Outdated
Copy link
Copy Markdown
Contributor

@lynxplay lynxplay left a comment

Choose a reason for hiding this comment

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

Beyond the import, LGTM.

@AverageGithub
Copy link
Copy Markdown
Contributor Author

I did not add an import because an other fully qualified import already exists in the file and I didn't want to touch that. Should I remove that aswell?

@lynxplay
Copy link
Copy Markdown
Contributor

Just leave the other FQN alone, we will be doing a cleanup of these files soonish once we have checkstyle ready on our repos.

But new code can already follow that 👍

@electronicboy electronicboy merged commit 30046e0 into PaperMC:main Jan 22, 2025
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.

4 participants