From 291009a48ee0ab6318e61c2397a03912bb554cb6 Mon Sep 17 00:00:00 2001 From: "zongmin.gu" Date: Thu, 22 Oct 2020 08:20:28 +0800 Subject: [PATCH] Enable tcmalloc to improve the malloc performance --- src/sgxenv.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sgxenv.mk b/src/sgxenv.mk index 82dba6092..e88e1f9c1 100644 --- a/src/sgxenv.mk +++ b/src/sgxenv.mk @@ -130,7 +130,8 @@ SGX_CXXFLAGS_T := $(SGX_CFLAGS_T) -std=c++11 -nostdinc++ -I$(SGX_SDK)/include/li # linked. SGX_LFLAGS_T = $(SGX_COMMON_CFLAGS) -nostdlib -L$(SGX_LIBRARY_PATH) $(_Other_Link_Flags) \ -Wl,--whole-archive -l$(Trts_Library_Name) -Wl,--no-whole-archive \ - -Wl,--start-group -lsgx_tcxx -lsgx_tstdc -l$(Crypto_Library_Name) -l$(Service_Library_Name) $(_Other_Enclave_Libs) -Wl,--end-group \ + -Wl,--whole-archive -lsgx_tcmalloc -Wl,--no-whole-archive \ + -Wl,--start-group -lsgx_tcxx -lsgx_tstdc -l$(Crypto_Library_Name) -l$(Service_Library_Name) $(_Other_Enclave_Libs) -Wl,--end-group \ -Wl,-Bstatic -Wl,-Bsymbolic -Wl,--no-undefined \ -Wl,-pie,-eenclave_entry -Wl,--export-dynamic \ -Wl,--defsym,__ImageBase=0 \