Skip to content

Commit 5b01c85

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

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
@@ -301,7 +301,9 @@ static inline void *ba_generic_realloc(umf_ba_linear_pool_t *pool, void *ptr,
301301
/*** The "LEAK" linear base allocator functions ******************************/
302302
/*****************************************************************************/
303303

304-
static void ba_leak_create(void) { Base_alloc_leak = umf_ba_linear_create(0); }
304+
static void ba_leak_create(void) {
305+
Base_alloc_leak = umf_ba_linear_create(4 * 1024 * 1024);
306+
}
305307

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

0 commit comments

Comments
 (0)