Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Fix subtle bug in new string.Join implementation.#8310

Merged
jkotas merged 1 commit into
dotnet:masterfrom
jamesqo:patch-3
Nov 25, 2016
Merged

Fix subtle bug in new string.Join implementation.#8310
jkotas merged 1 commit into
dotnet:masterfrom
jamesqo:patch-3

Conversation

@jamesqo
Copy link
Copy Markdown

@jamesqo jamesqo commented Nov 25, 2016

I had copied the code straight from #4559 and neglected to edit the last part; sorry about that. This fixes the case where there is a concurrent write between the first/second read of the array, so we make a defensive copy.

cc @jkotas, @AlexGhiondea

@jkotas
Copy link
Copy Markdown
Member

jkotas commented Nov 25, 2016

Thanks!

@jkotas jkotas merged commit dcadfbe into dotnet:master Nov 25, 2016
@jamesqo jamesqo deleted the patch-3 branch November 25, 2016 19:28
Copy link
Copy Markdown

@AlexGhiondea AlexGhiondea left a comment

Choose a reason for hiding this comment

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

LgtM! Thank you!

picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants