[OpenSIPS-Devel] [OpenSIPS/opensips] 7f334f: dialog: Mitigate 'dlg_list' PKG fragmentation
Liviu Chircu
noreply at github.com
Wed Nov 15 15:55:27 UTC 2023
Branch: refs/heads/3.2
Home: https://github.com/OpenSIPS/opensips
Commit: 7f334f494cc31118d82e6a304e24065478b5e08a
https://github.com/OpenSIPS/opensips/commit/7f334f494cc31118d82e6a304e24065478b5e08a
Author: Liviu Chircu <liviu at opensips.org>
Date: 2023-11-15 (Wed, 15 Nov 2023)
Changed paths:
M modules/dialog/dlg_hash.c
Log Message:
-----------
dialog: Mitigate 'dlg_list' PKG fragmentation
By using pkg_str_extend() instead of pkg_realloc(), we avoid a constant
creation of PKG fragments (the buffer will eventually stop growing),
which seems to gradually fragment the private memory pool, as the MI
'dlg_list' is continuously polled by various monitoring software.
Related to #3235
(cherry picked from commit d2037f63986926dfd169ea7a58c6abf1a82fafcd)
More information about the Devel
mailing list