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

Fix Incorrect Array Dereference When Clearing EventData.Reserved#17113

Merged
brianrob merged 1 commit intodotnet:masterfrom
brianrob:issue_28099
Mar 22, 2018
Merged

Fix Incorrect Array Dereference When Clearing EventData.Reserved#17113
brianrob merged 1 commit intodotnet:masterfrom
brianrob:issue_28099

Conversation

@brianrob
Copy link
Member

Fixes https://github.com/dotnet/corefx/issues/28099.

With the change to no longer initialize locals in System.Private.CoreLib, EventData.Reserved must be manually initialized to zero for manifest-based ETW. This was done in #16283. This change fixes an instance of missing initialization due to an incorrect array index.

cc: @danmosemsft, @JeremyKuhne

@brianrob brianrob requested review from jkotas and stephentoub March 22, 2018 01:42
@brianrob
Copy link
Member Author

Run EventSource tests:
@dotnet-bot test Windows_NT x64 Checked corefx_baseline
@dotnet-bot test Ubuntu x64 Checked corefx_baseline

Copy link
Member

@JeremyKuhne JeremyKuhne left a comment

Choose a reason for hiding this comment

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

Thanks!

@brianrob
Copy link
Member Author

@dotnet-bot test Windows_NT x86 Checked corefx_baseline

@brianrob
Copy link
Member Author

CoreFX Windows x86 failed due to unrelated System.Data.SqlClient.Tests failures.
CoreFX Ubuntu x64 failed due to unrelated System.IO.FileSystem.Tests failures.
Tizen failed due to unrelated qemu: Unsupported syscall: 389.

@brianrob brianrob merged commit a4845dc into dotnet:master Mar 22, 2018
@brianrob brianrob deleted the issue_28099 branch March 22, 2018 04:34
dotnet-bot pushed a commit to dotnet/corert that referenced this pull request Mar 22, 2018
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
jkotas pushed a commit to dotnet/corert that referenced this pull request Mar 22, 2018
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
dotnet-bot pushed a commit to dotnet/corefx that referenced this pull request Mar 22, 2018
Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
ahsonkhan pushed a commit to dotnet/corefx that referenced this pull request Mar 23, 2018
* Small tweaks to Dict asm size (dotnet/coreclr#17096)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>

* Moving Span APIs that allow skipping visibility checks to MemoryMarshal (#17087)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>

* Improve DateTime{Offset} "r" and "o" formatting performance (#17092)

Two main changes:
1. Rewrote the formatting to use span, only to then discover that we already had almost exactly the same implementation in Utf8Formatter.  As that one had some extra optimizations around JIT behaviors, I ported that over instead.
2. Avoided [ThreadStatic] lookups unless necessary.

ToString/TryFormat for "o"/"O" improve by ~2.5x.

ToString/TryFormat for "r"/"R" improve by ~3x.

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>

* Rename {Try}Read/WriteMachineEndian to just {Try}Read/Write (#17106)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>

* Fix incorrect array dereference. (dotnet/coreclr#17113)

Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>

* Move Span APIs that allow skipping visibility checks to MemoryMarshal

* Rename {Try}Read/WriteMachineEndian to just {Try}Read/Write

* Update calls to BinaryPrimitives.ReadMachineEndian

* Rename calls to ReadMachineEndian in System.Memory perf tests.

* Add ApiCompatBaseline for UWP NETNative

* Add to ApiCompatBaseline for UWP NETNative netstandard20
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.

Flaky tests BasicEventSourceTests.TestsWriteEvent/Test_WriteEvent_SelfDescribing_ETW and Test_WriteEvent_Manifest_ETW

3 participants