-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Conversation
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(); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 😉
@anurse that bot's a bit off. |
Cf. dotnet/runtime#33813