Skip to content

Commit 15c61b6

Browse files
committed
increase leak pool size in proxy lib
This improves search time if ptr belongs to leak pool, during free
1 parent c0dc97c commit 15c61b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/proxy_lib/proxy_lib.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2024 Intel Corporation
2+
* Copyright (C) 2024-2025 Intel Corporation
33
*
44
* Under the Apache License v2.0 with LLVM Exceptions. See LICENSE.TXT.
55
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
@@ -308,7 +308,9 @@ static inline void *ba_generic_realloc(umf_ba_linear_pool_t *pool, void *ptr,
308308
/*** The "LEAK" linear base allocator functions ******************************/
309309
/*****************************************************************************/
310310

311-
static void ba_leak_create(void) { Base_alloc_leak = umf_ba_linear_create(0); }
311+
static void ba_leak_create(void) {
312+
Base_alloc_leak = umf_ba_linear_create(4 * 1024 * 1024);
313+
}
312314

313315
// it does not implement destroy(), because we cannot destroy non-freed memory
314316

0 commit comments

Comments
 (0)