projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd57f4c
)
Make sure the thread running EventPipe::Disable is registered with the thread store...
author
Andrew Au
<andrewau@microsoft.com>
Thu, 2 May 2019 20:32:48 +0000
(13:32 -0700)
committer
Andrew Au
<cshung@gmail.com>
Thu, 2 May 2019 23:11:03 +0000
(16:11 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/
cd9880b95993abaa3ca1724153acc03221b7b5e4
src/coreclr/src/vm/eventpipe.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/vm/eventpipe.cpp
b/src/coreclr/src/vm/eventpipe.cpp
index
fab4116
..
d3720bb
100644
(file)
--- a/
src/coreclr/src/vm/eventpipe.cpp
+++ b/
src/coreclr/src/vm/eventpipe.cpp
@@
-341,6
+341,8
@@
void EventPipe::Disable(EventPipeSessionID id)
}
CONTRACTL_END;
+ SetupThread();
+
// Only perform the disable operation if the session ID
// matches the current active session.
if (id != (EventPipeSessionID)s_pSession)
@@
-752,11
+754,7
@@
void EventPipe::WriteEventInternal(EventPipeEvent &event, EventPipeEventPayload
}
else if (s_pConfig->RundownEnabled())
{
- if (pThread == nullptr)
- {
- return;
- }
-
+ _ASSERTE(pThread != nullptr);
BYTE *pData = payload.GetFlatData();
if (pData != NULL)
{