Uh oh!
There was an error while loading. Please reload this page.
Fix deadlock in TestEventListener and re-enable ArrayPool DiagnosticEvent tests - #45469
Conversation
ghost
commented
Dec 2, 2020
Tagging subscribers to this area: @tommcdon Issue DetailsFix #42899. TestEventListener has a deadlock in its implementation where it tries to lock the The fix is simple - calling
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Fix#42899.
TestEventListener has a deadlock in its implementation where it tries to lock the
_eventSourceListand callEnableEventSourcewhich can try to take the EventListener lock, while the overriden OnEventSourceCreated method tries to grab that same lock (_eventSourceList) while holding the EventListener lock.The fix is simple - calling
EnableEventSourcedoesn't need to be inside the_eventSourceListlock.