[OpenSIPS-Devel] [OpenSIPS/opensips] 0efb9a: shm: Remove unused/deprecated functions
Liviu Chircu
noreply at github.com
Mon May 27 11:41:23 EDT 2019
Branch: refs/heads/3.0
Home: https://github.com/OpenSIPS/opensips
Commit: 0efb9acaf0a1ca3b9ccb3110f59918ce2e137252
https://github.com/OpenSIPS/opensips/commit/0efb9acaf0a1ca3b9ccb3110f59918ce2e137252
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-05-27 (Mon, 27 May 2019)
Changed paths:
M mem/shm_mem.c
Log Message:
-----------
shm: Remove unused/deprecated functions
(cherry picked from commit 6ecd6bfbb2c50ac1c2a78e160e80709b9deb7063)
Commit: 7f05359cef81a7da20b5ea5230b4a78804284318
https://github.com/OpenSIPS/opensips/commit/7f05359cef81a7da20b5ea5230b4a78804284318
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-05-27 (Mon, 27 May 2019)
Changed paths:
M mem/rpm_mem.h
Log Message:
-----------
rpm memory: Fix rpm_free() locking
* fix "shm_unlock()" copy-paste error
* the ifdefs are unnecessary, as the rpm_lock/unlock macros do
exactly that
(cherry picked from commit 4bd078f11be38534a32aa66e65c931dbd386c607)
Commit: a433b47fbab656dc61f88791242df24aaae7ed09
https://github.com/OpenSIPS/opensips/commit/a433b47fbab656dc61f88791242df24aaae7ed09
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-05-27 (Mon, 27 May 2019)
Changed paths:
M mem/shm_mem.h
Log Message:
-----------
shared memory: Fix unsafe shm_free() when debugging
When HP_MALLOC was included in the build, the F_MALLOC_DBG and
Q_MALLOC_DBG allocators were broken, since their shm_free() operation
was purely lockless and could corrupt the memory at any time.
(cherry picked from commit 24b0735076c20464f22047201674f78d184d72e0)
Commit: 6490dcce7e372f1721f7532e1673ab19d389c0e8
https://github.com/OpenSIPS/opensips/commit/6490dcce7e372f1721f7532e1673ab19d389c0e8
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-05-27 (Mon, 27 May 2019)
Changed paths:
M mem/shm_mem.h
Log Message:
-----------
shared memory: Add support for bulk operations
This patch adds the following functions:
* shm_malloc_bulk()
* shm_free_bulk()
Their purpose is to minimize contention, in situations where the
developer needs to perform lots of consecutive shared memory operations.
In this case, their usage is as follows:
shm_lock();
shm_malloc_bulk();
shm_malloc_bulk();
...
shm_free_bulk(...);
shm_malloc_bulk();
shm_free_bulk(...);
...
shm_unlock();
(cherry picked from commit 3a921cc3744408bea05fc49a85da8e337df6d2d3)
Commit: f5a371ba360958bc6708d47ea369d431e2521abd
https://github.com/OpenSIPS/opensips/commit/f5a371ba360958bc6708d47ea369d431e2521abd
Author: Liviu Chircu <liviu at opensips.org>
Date: 2019-05-27 (Mon, 27 May 2019)
Changed paths:
M modules/tm/h_table.c
M modules/tm/sip_msg.c
M modules/tm/sip_msg.h
M modules/tm/t_reply.c
M usr_avp.c
M usr_avp.h
Log Message:
-----------
tm: Refactor code to use bulk shm operations
(cherry picked from commit 216bf4df007b2b2fbba43d9a292cad1982691c35)
Compare: https://github.com/OpenSIPS/opensips/compare/5ff0afeea8de...f5a371ba3609
More information about the Devel
mailing list