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

hotfix: fix a race condition with RWMutex #23

Merged
merged 1 commit into from
Jan 21, 2024

Conversation

scalalang2
Copy link
Owner

@scalalang2 scalalang2 commented Jan 21, 2024

Motivation

This fixes a race condiiton issue using RWMutex with map.

I thought that the condition occurred due to the pointer to the map element being non-addressable.

However, further investigation is needed to determine the root cause.

Related Issues

resolve #21

@scalalang2 scalalang2 force-pushed the hotfix/race-condition-with-rw-mutex branch from 8d16d47 to b9b52a7 Compare January 21, 2024 05:59
@richardartoul
Copy link

Thanks for the quick response!

@scalalang2 scalalang2 merged commit 41f32d4 into main Jan 21, 2024
1 check passed
@scalalang2
Copy link
Owner Author

I created a hotfix tag v0.1.5 which includes this.

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.

Data race?
2 participants