diff --git a/example/asynchronous_echo_c++/CMakeLists.txt b/example/asynchronous_echo_c++/CMakeLists.txt index 60854454e2..5bccf7a40d 100644 --- a/example/asynchronous_echo_c++/CMakeLists.txt +++ b/example/asynchronous_echo_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(asynchronous_echo_client client.cpp ${PROTO_SRC}) diff --git a/example/auto_concurrency_limiter/CMakeLists.txt b/example/auto_concurrency_limiter/CMakeLists.txt index c19a8f4001..76c57a6390 100644 --- a/example/auto_concurrency_limiter/CMakeLists.txt +++ b/example/auto_concurrency_limiter/CMakeLists.txt @@ -124,7 +124,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" "-Wl,-U,__Z13GetStackTracePPvii" - "-Wl,-U,_RegisterThriftProtocol") + "-Wl,-U,_RegisterThriftProtocol" + "-Wl,-U,_mallctl" + ) endif() add_executable(asynchronous_echo_client client.cpp ${PROTO_SRC}) diff --git a/example/backup_request_c++/CMakeLists.txt b/example/backup_request_c++/CMakeLists.txt index 7aab5e5768..294ad3c408 100644 --- a/example/backup_request_c++/CMakeLists.txt +++ b/example/backup_request_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(backup_request_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/baidu_proxy_and_generic_call/CMakeLists.txt b/example/baidu_proxy_and_generic_call/CMakeLists.txt index 8cc9c0f135..04c941c836 100644 --- a/example/baidu_proxy_and_generic_call/CMakeLists.txt +++ b/example/baidu_proxy_and_generic_call/CMakeLists.txt @@ -122,7 +122,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/bthread_tag_echo_c++/CMakeLists.txt b/example/bthread_tag_echo_c++/CMakeLists.txt index 56aec0df5d..40563fed4a 100644 --- a/example/bthread_tag_echo_c++/CMakeLists.txt +++ b/example/bthread_tag_echo_c++/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/cancel_c++/CMakeLists.txt b/example/cancel_c++/CMakeLists.txt index 07d80b4c4a..7b74f5f8c0 100644 --- a/example/cancel_c++/CMakeLists.txt +++ b/example/cancel_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(cancel_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/cascade_echo_c++/CMakeLists.txt b/example/cascade_echo_c++/CMakeLists.txt index b6d8c0b75f..87ec0bd416 100644 --- a/example/cascade_echo_c++/CMakeLists.txt +++ b/example/cascade_echo_c++/CMakeLists.txt @@ -129,7 +129,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(cascade_echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/dynamic_partition_echo_c++/CMakeLists.txt b/example/dynamic_partition_echo_c++/CMakeLists.txt index 2394b7fc34..2837b3ed65 100644 --- a/example/dynamic_partition_echo_c++/CMakeLists.txt +++ b/example/dynamic_partition_echo_c++/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(dynamic_partition_echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/echo_c++/CMakeLists.txt b/example/echo_c++/CMakeLists.txt index 7746957b17..0794d8b153 100644 --- a/example/echo_c++/CMakeLists.txt +++ b/example/echo_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/grpc_c++/CMakeLists.txt b/example/grpc_c++/CMakeLists.txt index 516735d6ec..aafac6a735 100644 --- a/example/grpc_c++/CMakeLists.txt +++ b/example/grpc_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" "-Wl,-U,__Z13GetStackTracePPvii" - "-Wl,-U,_RegisterThriftProtocol") + "-Wl,-U,_RegisterThriftProtocol" + "-Wl,-U,_mallctl" + ) endif() add_executable(server server.cpp ${PROTO_SRC} ${PROTO_HEADER} ) diff --git a/example/http_c++/CMakeLists.txt b/example/http_c++/CMakeLists.txt index 3fd9a088a3..07e9db9f7f 100644 --- a/example/http_c++/CMakeLists.txt +++ b/example/http_c++/CMakeLists.txt @@ -137,7 +137,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(http_client http_client.cpp) diff --git a/example/memcache_c++/CMakeLists.txt b/example/memcache_c++/CMakeLists.txt index 5941c344cd..e0273ed553 100644 --- a/example/memcache_c++/CMakeLists.txt +++ b/example/memcache_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(memcache_client client.cpp) diff --git a/example/multi_threaded_echo_c++/CMakeLists.txt b/example/multi_threaded_echo_c++/CMakeLists.txt index c13b34bdde..c1066767f0 100644 --- a/example/multi_threaded_echo_c++/CMakeLists.txt +++ b/example/multi_threaded_echo_c++/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/multi_threaded_echo_fns_c++/CMakeLists.txt b/example/multi_threaded_echo_fns_c++/CMakeLists.txt index 887541b8fd..50fa58f18c 100644 --- a/example/multi_threaded_echo_fns_c++/CMakeLists.txt +++ b/example/multi_threaded_echo_fns_c++/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(multi_threaded_echo_fns_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/nshead_extension_c++/CMakeLists.txt b/example/nshead_extension_c++/CMakeLists.txt index 6ddf382671..dc3cb6a7db 100644 --- a/example/nshead_extension_c++/CMakeLists.txt +++ b/example/nshead_extension_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(nshead_extension_client client.cpp) diff --git a/example/nshead_pb_extension_c++/CMakeLists.txt b/example/nshead_pb_extension_c++/CMakeLists.txt index 8d0edf6030..e4608f5a9d 100644 --- a/example/nshead_pb_extension_c++/CMakeLists.txt +++ b/example/nshead_pb_extension_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(nshead_pb_extension_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/parallel_echo_c++/CMakeLists.txt b/example/parallel_echo_c++/CMakeLists.txt index 5bd081836e..4cbab9228b 100644 --- a/example/parallel_echo_c++/CMakeLists.txt +++ b/example/parallel_echo_c++/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(parallel_echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/partition_echo_c++/CMakeLists.txt b/example/partition_echo_c++/CMakeLists.txt index 636e19b431..00326bd871 100644 --- a/example/partition_echo_c++/CMakeLists.txt +++ b/example/partition_echo_c++/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/rdma_performance/CMakeLists.txt b/example/rdma_performance/CMakeLists.txt index 0fe0fe20b6..da1c0127de 100644 --- a/example/rdma_performance/CMakeLists.txt +++ b/example/rdma_performance/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/redis_c++/CMakeLists.txt b/example/redis_c++/CMakeLists.txt index 1447e60698..9283f613da 100644 --- a/example/redis_c++/CMakeLists.txt +++ b/example/redis_c++/CMakeLists.txt @@ -140,7 +140,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(redis_cli redis_cli.cpp) diff --git a/example/rpcz_echo_c++/CMakeLists.txt b/example/rpcz_echo_c++/CMakeLists.txt index 53c1669028..af48a3f2cc 100644 --- a/example/rpcz_echo_c++/CMakeLists.txt +++ b/example/rpcz_echo_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(rpcz_echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/selective_echo_c++/CMakeLists.txt b/example/selective_echo_c++/CMakeLists.txt index 4b304fb6c0..fce198d335 100644 --- a/example/selective_echo_c++/CMakeLists.txt +++ b/example/selective_echo_c++/CMakeLists.txt @@ -136,7 +136,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(selective_echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/session_data_and_thread_local/CMakeLists.txt b/example/session_data_and_thread_local/CMakeLists.txt index 3678ab761d..a509cf376c 100644 --- a/example/session_data_and_thread_local/CMakeLists.txt +++ b/example/session_data_and_thread_local/CMakeLists.txt @@ -137,7 +137,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(session_data_and_thread_local_client client.cpp ${PROTO_SRC} ${PROTO_HEADER}) diff --git a/example/streaming_echo_c++/CMakeLists.txt b/example/streaming_echo_c++/CMakeLists.txt index ca4579d308..a9c3dc3126 100644 --- a/example/streaming_echo_c++/CMakeLists.txt +++ b/example/streaming_echo_c++/CMakeLists.txt @@ -130,7 +130,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin") "-Wl,-U,_MallocExtension_ReleaseFreeMemory" "-Wl,-U,_ProfilerStart" "-Wl,-U,_ProfilerStop" - "-Wl,-U,__Z13GetStackTracePPvii") + "-Wl,-U,__Z13GetStackTracePPvii" + "-Wl,-U,_mallctl" + ) endif() add_executable(streaming_echo_client client.cpp ${PROTO_SRC} ${PROTO_HEADER})