mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
MINOR: pools: export trim_all_pools()
This way it will be usable from outside instead of malloc_trim().
This commit is contained in:
parent
4138f15182
commit
7aee683541
2 changed files with 2 additions and 1 deletions
|
|
@ -103,6 +103,7 @@ extern uint pool_debugging;
|
|||
|
||||
int is_trim_enabled(void);
|
||||
int malloc_trim(size_t pad);
|
||||
void trim_all_pools(void);
|
||||
|
||||
void *pool_get_from_os(struct pool_head *pool);
|
||||
void pool_put_to_os(struct pool_head *pool, void *ptr);
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ static int(*_malloc_trim)(size_t) = NULL;
|
|||
* its job. We just have to be careful as callers might already be isolated
|
||||
* themselves.
|
||||
*/
|
||||
static void trim_all_pools(void)
|
||||
void trim_all_pools(void)
|
||||
{
|
||||
int isolated = thread_isolated();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue