Skip to content

Replaced Span<T>.Fill(0) with Span<T>.Clear() #20023

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

Merged
merged 1 commit into from
Apr 10, 2020

Conversation

gfoidl
Copy link
Member

@gfoidl gfoidl commented Mar 20, 2020

@ghost
Copy link

ghost commented Mar 20, 2020

Greetings human! You've submitted a PR that modifies code that is shared with https://github.com/dotnet/runtime . Please make sure you synchronize this code with the changes in that repo!

@@ -443,7 +443,7 @@ private void ClearReferences(int startIndex, int length)
// If we store references, clear them to allow the objects to be GC'd.
if (!IsValueTypeElement)
{
this.AvailableMemory.Span.Slice(startIndex, length).Fill(default);
this.AvailableMemory.Span.Slice(startIndex, length).Clear();
Copy link
Member

@SteveSandersonMS SteveSandersonMS Mar 20, 2020

Choose a reason for hiding this comment

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

The BlazorPack sources are shared-source with MessagePack-CSharp, so to update this the process would be:

  • Have the desired update made in the MessagePack-CSharp repo
  • Update the sources in this repo to match the latest state in MessagePack-CSharp

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the info --> MessagePack-CSharp/MessagePack-CSharp#848

You've submitted a PR that modifies code that is shared with https://github.com/dotnet/runtime .

The bot is somewhat misleading as it speaks about "runtime"-repo. Humans are still smarter 😉

@Tratcher
Copy link
Member

@anurse that bot's a bit off.

@Pilchie Pilchie added area-blazor Includes: Blazor, Razor Components area-servers labels Mar 20, 2020
@shirhatti shirhatti merged commit 8109690 into dotnet:master Apr 10, 2020
@gfoidl gfoidl deleted the span-fill-clear branch April 11, 2020 08:27
ColtonMori added a commit to ColtonMori/MessagePack that referenced this pull request Oct 21, 2022
@amcasey amcasey added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed area-runtime labels Jun 6, 2023
DotDeveloper95 added a commit to DotDeveloper95/MessagePack-CSharp that referenced this pull request Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants