[sysprof/wip/chergert/control-fd] preload: remove atomic



commit bb997f3b0401ba0dc8f3ca2a29b9abc7b76b53e9
Author: Christian Hergert <chergert redhat com>
Date:   Tue Feb 11 17:07:37 2020 -0800

    preload: remove atomic

 src/libsysprof/preload/sysprof-memory-collector.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/libsysprof/preload/sysprof-memory-collector.c 
b/src/libsysprof/preload/sysprof-memory-collector.c
index 420a8ed..42a16d7 100644
--- a/src/libsysprof/preload/sysprof-memory-collector.c
+++ b/src/libsysprof/preload/sysprof-memory-collector.c
@@ -62,7 +62,7 @@ static void
 collector_init_ctor (void)
 {
   sysprof_collector_init ();
-  g_atomic_int_set (&collector_ready, TRUE);
+  collector_ready = TRUE;
 }
 
 static guint
@@ -70,7 +70,8 @@ backtrace_func (SysprofCaptureAddress *addrs,
                 guint                  n_addrs,
                 gpointer               user_data)
 {
-#if defined(ENABLE_LIBUNWIND)
+#if 0
+//#if defined(ENABLE_LIBUNWIND)
   unw_context_t uc;
   unw_cursor_t cursor;
   unw_word_t ip;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]