Skip to content
Snippets Groups Projects
  1. Nov 21, 2018
    • Corey Farrell's avatar
      astobj2: Create function to copy weak proxied objects from container. · bc7f4f4d
      Corey Farrell authored
      Create ao2_container_dup_weakproxy_objs to perform a similar function to
      ao2_container_dup.  This function expects the source container to have
      weakproxy objects, inserts the associated non-weak objects into the
      destination container.  Orphaned weakproxy objects are ignored.
      
      Create test for this new function and for ao2_weakproxy_find.
      
      Change-Id: I898387f058057e08696fe9070f8cd94ef3a27482
      Unverified
      bc7f4f4d
  2. Oct 03, 2018
  3. Mar 15, 2018
  4. Dec 22, 2017
  5. Oct 11, 2017
  6. Oct 27, 2016
    • Corey Farrell's avatar
      Remove ASTERISK_REGISTER_FILE. · a6e5bae3
      Corey Farrell authored
      ASTERISK_REGISTER_FILE no longer has any purpose so this commit removes
      all traces of it.
      
      Previously exported symbols removed:
      * __ast_register_file
      * __ast_unregister_file
      * ast_complete_source_filename
      
      This also removes the mtx_prof static variable that was declared when
      MTX_PROFILE was enabled.  This variable was only used in lock.c so it
      is now initialized in that file only.
      
      ASTERISK-26480 #close
      
      Change-Id: I1074af07d71f9e159c48ef36631aa432c86f9966
      a6e5bae3
  7. Sep 30, 2016
    • Corey Farrell's avatar
      astobj2: Add backtrace to log_bad_ao2. · 2a03575c
      Corey Farrell authored
      * Compile __ast_assert_failed unconditionally.
      * Use __ast_assert_failed to log messages from log_bad_ao2
      * Remove calls to ast_assert(0) that happen after log_bad_ao2 was run.
      
      Change-Id: I48f1af44b2718ad74a421ff75cb6397b924a9751
      2a03575c
  8. Apr 27, 2015
    • Corey Farrell's avatar
      Astobj2: Allow reference debugging to be enabled/disabled by config. · 5c1d07ba
      Corey Farrell authored
      * The REF_DEBUG compiler flag no longer has any effect on code that uses
        Astobj2.  It is used to determine if reference debugging is enabled by
        default.  Reference debugging can be enabled or disabled in asterisk.conf.
      * Caller information is provided in logger errors for ao2 bad magic numbers.
      * Optimizes AO2 by merging internal functions with the public counterpart.
        This was possible now that we no longer require a dual ABI.
      
      ASTERISK-24974 #close
      Reported by: Corey Farrell
      
      Change-Id: Icf3552721fe999365ba8a8cf00a965aa6b897cc1
      5c1d07ba
  9. Apr 23, 2015
    • Corey Farrell's avatar
      Astobj2: Ensure all calls to __adjust_lock pass a valid object. · c231c85e
      Corey Farrell authored
      __adjust_lock doesn't check for invalid objects, and doesn't have an
      appropriate return value for invalid objects.  Most callers of
      __adjust_lock pass objects that have already been confirmed valid,
      this change adds checks before the remaining calls.
      
      ASTERISK-24997 #close
      Reported by: Corey Farrell
      
      Change-Id: I669100f87937cc3f867cec56a27ae9c01292908f
      c231c85e
  10. Apr 13, 2015
    • Matt Jordan's avatar
      git migration: Refactor the ASTERISK_FILE_VERSION macro · 4a582616
      Matt Jordan authored
      Git does not support the ability to replace a token with a version
      string during check-in. While it does have support for replacing a
      token on clone, this is somewhat sub-optimal: the token is replaced
      with the object hash, which is not particularly easy for human
      consumption. What's more, in practice, the source file version was often
      not terribly useful. Generally, when triaging bugs, the overall version
      of Asterisk is far more useful than an individual SVN version of a file. As a
      result, this patch removes Asterisk's support for showing source file
      versions.
      
      Specifically, it does the following:
      
      * Rename ASTERISK_FILE_VERSION macro to ASTERISK_REGISTER_FILE, and
        remove passing the version in with the macro. Other facilities
        than 'core show file version' make use of the file names, such as
        setting a debug level only on a specific file. As such, the act of
        registering source files with the Asterisk core still has use. The
        macro rename now reflects the new macro purpose.
      
      * main/asterisk:
        - Refactor the file_version structure to reflect that it no longer
          tracks a version field.
        - Remove the "core show file version" CLI command. Without the file
          version, it is no longer useful.
        - Remove the ast_file_version_find function. The file version is no
          longer tracked.
        - Rename ast_register_file_version/ast_unregister_file_version to
          ast_register_file/ast_unregister_file, respectively.
      
      * main/manager: Remove value from the Version key of the ModuleCheck
        Action. The actual key itself has not been removed, as doing so would
        absolutely constitute a backwards incompatible change. However, since
        the file version is no longer tracked, there is no need to attempt to
        include it in the Version key.
      
      * UPGRADE: Add notes for:
        - Modification to the ModuleCheck AMI Action
        - Removal of the "core show file version" CLI command
      
      Change-Id: I6cf0ff280e1668bf4957dc21f32a5ff43444a40e
      4a582616
  11. Mar 26, 2015
  12. Jun 25, 2014
  13. Jun 20, 2014
  14. Jun 06, 2014
Loading