Skip to content

Commit

Permalink
Fix EventPipe shutdown logic (#86180)
Browse files Browse the repository at this point in the history
  • Loading branch information
davmason authored May 15, 2023
1 parent e85752b commit 9c4e5a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native/eventpipe/ep-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ ep_thread_get_threads (dn_vector_ptr_t *threads)
EP_ASSERT (threads != NULL);

EP_SPIN_LOCK_ENTER (&_ep_threads_lock, section1)
DN_VECTOR_PTR_FOREACH_BEGIN (EventPipeThread *, thread, threads) {
DN_LIST_FOREACH_BEGIN (EventPipeThread *, thread, _ep_threads) {
if (thread) {
// Add ref so the thread doesn't disappear when we release the lock
ep_thread_addref (thread);
Expand Down

0 comments on commit 9c4e5a5

Please sign in to comment.