You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/libcommon/cmake/find_jemalloc.cmake
+4-11
Original file line number
Diff line number
Diff line change
@@ -12,17 +12,10 @@
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
-
# Only enable under linux
16
-
if(${CMAKE_SYSTEM_NAME}MATCHES"Linux")
17
-
set(ENABLE_JEMALLOC_DEFAULT 1)
18
-
elseif(${CMAKE_SYSTEM_NAME}MATCHES"FreeBSD")
19
-
set(ENABLE_JEMALLOC_DEFAULT 0)
20
-
elseif(${CMAKE_SYSTEM_NAME}MATCHES"Darwin")
21
-
set(ENABLE_JEMALLOC_DEFAULT 0)
22
-
endif()
23
-
24
-
option (ENABLE_JEMALLOC "Set to TRUE to use jemalloc"${ENABLE_JEMALLOC_DEFAULT})
25
-
# TODO: Make ENABLE_JEMALLOC_PROF default value to ${ENABLE_JEMALLOC_DEFAULT} after https://github.com/pingcap/tics/issues/3236 get fixed.
15
+
option (ENABLE_JEMALLOC "Set to TRUE to use jemalloc"ON)
16
+
# 1. The deadlock mentioned in https://github.com/pingcap/tics/issues/3236 is not related to ENABLE_JEMALLOC_PROF.
17
+
# 2. It is also expected to be eliminated even if the heap profiling is activated, with a newer version of pprof-rs.
18
+
# TODO: Enable continuous heap profiling after we make sure statement 2.
26
19
option (ENABLE_JEMALLOC_PROF "Set to ON to enable jemalloc profiling"ON)
27
20
option (USE_INTERNAL_JEMALLOC_LIBRARY "Set to FALSE to use system jemalloc library instead of bundled"${NOT_UNBUNDLED})
0 commit comments