From: David Mason Date: Mon, 15 May 2023 18:05:49 +0000 (-0700) Subject: Fix EventPipe shutdown logic (#86180) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~2225 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c4e5a58d8d4c1c352dfef612d58bfcbaafe2d46;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix EventPipe shutdown logic (#86180) --- diff --git a/src/native/eventpipe/ep-thread.c b/src/native/eventpipe/ep-thread.c index 234b829..f728d86 100644 --- a/src/native/eventpipe/ep-thread.c +++ b/src/native/eventpipe/ep-thread.c @@ -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);