Skip to content
Snippets Groups Projects
  1. Oct 07, 2019
    • Kevin Harwell's avatar
      res_pjsip_mwi: use an ao2_global object for mwi containers · 12dbeb69
      Kevin Harwell authored
      On shutdown it's possible for the unsolicited mwi container to be freed before
      other dependent threads are done using it. This patch ensures this can no
      longer happen by wrapping the container in an ao2_global object. The solicited
      container was also changed too.
      
      ASTERISK-28552
      
      Change-Id: I8f812286dc19a34916acacd71ce2ec26e1042047
      12dbeb69
    • Kevin Harwell's avatar
      res_pjsip/res_pjsip_mwi: use centralized serializer pools · 2970a13f
      Kevin Harwell authored
      Both res_pjsip and res_pjsip_mwi made use of serializer pools. However, they
      both implemented their own serializer pool functionality that was pretty much
      identical in each of the source files. This patch removes the duplicated code,
      and uses the new 'ast_serializer_pool' object instead.
      
      Additionally res_pjsip_mwi enables a shutdown group on the pool since if the
      timing was right the module could be unloaded while taskprocessor threads still
      needed to execute, thus causing a crash.
      
      Change-Id: I959b0805ad024585bbb6276593118be34fbf6e1d
      2970a13f
    • Kevin Harwell's avatar
      serializer: move/add asterisk serializer pool functionality · c0efe19c
      Kevin Harwell authored
      Serializer pools have previously existed in Asterisk. However, for the most
      part the code has been duplicated across modules. This patch abstracts the
      code into an 'ast_serializer_pool' object. As well the code is now centralized
      in serializer.c/h.
      
      In addition serializer pools can now optionally be monitored by a shutdown
      group. This will prevent the pool from being destroyed until all serializers
      have completed.
      
      Change-Id: Ib1e906144b90ffd4d5ed9826f0b719ca9c6d2971
      c0efe19c
    • Friendly Automation's avatar
  2. Oct 04, 2019
  3. Oct 01, 2019
  4. Sep 27, 2019
  5. Sep 26, 2019
  6. Sep 25, 2019
  7. Sep 24, 2019
  8. Sep 23, 2019
    • Kevin Harwell's avatar
      0cc48571
    • Friendly Automation's avatar
    • Corey Farrell's avatar
      core: Add AO2_ALLOC_OPT_NO_REF_DEBUG option. · 725e991f
      Corey Farrell authored
      Previous to this patch passing a NULL tag to ao2_alloc or ao2_ref based
      functions would result in the reference not being logged under
      REF_DEBUG.  This could sometimes cause inaccurate logging if NULL was
      accidentally passed to a reference action.  Now reference logging is
      only disabled by option passed to the allocation method.
      
      Change-Id: I3c17d867d901d53f9fcd512bef4d52e342637b54
      Unverified
      725e991f
    • Kevin Harwell's avatar
      res_sorcery_memory_cache: stale item update leak · a4caaef6
      Kevin Harwell authored
      When a stale item was being updated the object was being retrieved, but its
      reference was not being decremented after the update. This patch makes it so
      the object is now appropriately de-referenced.
      
      ASTERISK-28523
      
      Change-Id: I9d8173d3a0416a242f4eba92fa0853279c500ec7
      a4caaef6
    • George Joseph's avatar
      astmm.c: Display backtrace with memory show allocations · e82f2f6e
      George Joseph authored
      You can currently capture backtraces of memory allocations but they
      only get displayed when you stop asterisk and the atexit hooks
      are enabled.  Now, if memory backtrace is on and you issue a
      "memory show allocations" CLI command for a specific file, then
      a backtrace will show for each allocation that occurred after
      you turned "memory backtrace on".  The backtrace display is shown
      only when a specific file's allocations are displayed to prevent
      a massive CLI dump of every file's allocations.
      
      Change-Id: Ic657afc1fc6ec7205e16eb36a97a611d235a2b4f
      e82f2f6e
    • Corey Farrell's avatar
      core: Fix ABI mismatch of ao2_global_obj. · a4142c84
      Corey Farrell authored
      astobj2.c declares DEBUG_THREADS_LOOSE_ABI to avoid overhead of debug
      threads tracking information in the internal structures of astobj2.
      Unfortunately this means that ao2_global_obj contains the statically
      allocated debug threads tracking fields which are used by initialization
      and cleanup but main/astobj2.c believed those fields and associated
      space did not exist.
      
      Change-Id: Icef41ad97d88a8c1d1515e034ec8133cab3b1527
      Unverified
      a4142c84
  9. Sep 20, 2019
  10. Sep 19, 2019
Loading