From 4680eafa8ab5e37745f6988ccf202f46eae07409 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Tue, 14 Jun 2022 22:20:23 +0000 Subject: [PATCH] Found bug in destructor logic. Default thread id to INT_MAX. --- src/apex/profiler_listener.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apex/profiler_listener.cpp b/src/apex/profiler_listener.cpp index 1b7fd233..a539c4d8 100644 --- a/src/apex/profiler_listener.cpp +++ b/src/apex/profiler_listener.cpp @@ -96,7 +96,7 @@ class profiler_listener_globals { std::vector event_sets; // PAPI event sets std::vector event_set_sizes; // PAPI event set sizes papi_state thread_papi_state; - profiler_listener_globals() : my_tid(0), thread_papi_state(papi_suspended) { } + profiler_listener_globals() : my_tid(UINT_MAX), thread_papi_state(papi_suspended) { } ~profiler_listener_globals() { if (my_tid == 0) finalize(); } };