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

contenthash: data race #4010

Merged
merged 1 commit into from
Jul 12, 2023
Merged

contenthash: data race #4010

merged 1 commit into from
Jul 12, 2023

Conversation

alexcb
Copy link
Collaborator

@alexcb alexcb commented Jul 11, 2023

Multiple calls to GetCacheContext may occur from multiple threads; however they should only occur when dealing with an ImmutableRef. For this case we still need to perform a lock to prevent data race warnings; however in reality the linkMap will be unused.

Multiple calls to GetCacheContext may occur from multiple threads;
however they should only occur when dealing with an ImmutableRef.
For this case we still need to perform a lock to prevent data race
warnings; however in reality the linkMap will be unused.

Signed-off-by: Alex Couture-Beil <alex@earthly.dev>
@alexcb alexcb requested a review from tonistiigi July 11, 2023 22:57
@tonistiigi tonistiigi merged commit 0eafef8 into moby:master Jul 12, 2023
54 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.

None yet

2 participants