Bug Fix: Calling System.Diagnostics.Tracing.EventPipe.Enable twice asserts dotnet...
authorJosé Rivero <jorive@microsoft.com>
Tue, 12 Feb 2019 21:54:33 +0000 (13:54 -0800)
committerGitHub <noreply@github.com>
Tue, 12 Feb 2019 21:54:33 +0000 (13:54 -0800)
commit0569e1e11d4b9c25cc44ec3f079a5734e99044fe
treee09ca14774d4dd93395f4511492537d77f42dd3c
parentc7b3f5860a16e7b322bf2ea3b5c2548b493b02a6
Bug Fix: Calling System.Diagnostics.Tracing.EventPipe.Enable twice asserts dotnet/coreclr#22247 (dotnet/coreclr#22318)

After disabling EventPipe -> SampleProfiler, we were not closing the thread shutdown event, thus asserting on reentrance of the EventPipe.
* Adding regression test, and removing comment.
* Waits until the specified object is in the signaled state.

Commit migrated from https://github.com/dotnet/coreclr/commit/8ad7d5e57e0eb0308453895693a996f5a93c8e08
src/coreclr/src/vm/sampleprofiler.cpp
src/coreclr/tests/src/tracing/regress/GitHub_22247/GitHub_22247.cs [new file with mode: 0644]
src/coreclr/tests/src/tracing/regress/GitHub_22247/GitHub_22247.csproj [new file with mode: 0644]