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

Use a ConcurrentHashMap for enum mappings for BlockData #10161

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

Machine-Maker
Copy link
Member

This API should be thread-safe as there is no world state

Reported in https://forums.papermc.io/threads/concurrentmodificationexception-on-chunkgenerator.1022/

This API should be thread-safe as there is no world state
@Machine-Maker Machine-Maker requested a review from a team as a code owner January 12, 2024 04:52
@Machine-Maker
Copy link
Member Author

I think ideally, the mapping between enums would be just all created during startup, and that is certainly something we could do to fix this, just this is smaller diff.

@electronicboy electronicboy merged commit ec19620 into PaperMC:master Jan 12, 2024
4 checks passed
@Machine-Maker Machine-Maker deleted the fix/BlockData-CME branch January 12, 2024 21:26
lynxplay pushed a commit to lynxplay/paper that referenced this pull request Feb 23, 2024
This API should be thread-safe as there is no world state
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