Skip to content

Commit 797dfa6

Browse files
committed
fix
1 parent fe27216 commit 797dfa6

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.github/workflows/reusable_proxy_lib.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ jobs:
8282
- name: Run "ctest --output-on-failure" with proxy library and size.threshold=128
8383
working-directory: ${{env.BUILD_DIR}}
8484
run: >
85-
UMF_PROXY="size.threshold=128"
85+
UMF_PROXY="page.disposition=shared-shm;size.threshold=128"
8686
LD_PRELOAD=./lib/libumf_proxy.so
8787
ctest --output-on-failure -E provider_file_memory_ipc
8888

src/proxy_lib/proxy_lib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ static __TLS int was_called_from_malloc_usable_size = 0;
142142
#ifndef _WIN32
143143
static size_t get_size_threshold(void) {
144144
char *str_threshold = utils_env_var_get_str("UMF_PROXY", "size.threshold=");
145+
LOG_DEBUG("UMF_PROXY[size.threshold] = %s", str_threshold);
145146
long threshold = utils_get_size_threshold(str_threshold);
146147
if (threshold < 0) {
147148
LOG_ERR("incorrect size threshold: %s", str_threshold);

test/CMakeLists.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,8 @@ if(UMF_PROXY_LIB_ENABLED AND UMF_BUILD_SHARED_LIBRARY)
420420
NAME test_proxy_lib_size_threshold
421421
SRCS ${BA_SOURCES_FOR_TEST} test_proxy_lib_size_threshold.cpp
422422
LIBS ${UMF_UTILS_FOR_TEST} umf_proxy)
423-
set_property(
424-
TEST umf-test_proxy_lib_size_threshold
425-
PROPERTY ENVIRONMENT
426-
UMF_PROXY="page.disposition=shared-shm;size.threshold=64")
423+
set_property(TEST umf-test_proxy_lib_size_threshold
424+
PROPERTY ENVIRONMENT UMF_PROXY="size.threshold=64")
427425
endif()
428426

429427
# the memoryPool test run with the proxy library

0 commit comments

Comments
 (0)