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
option(MI_OVERRIDE"Override the standard malloc interface (i.e. define entry points for 'malloc', 'free', etc)"ON)
11
11
option(MI_XMALLOC"Enable abort() call on memory allocation failure by default"OFF)
12
12
option(MI_SHOW_ERRORS"Show error and warning messages by default (only enabled by default in DEBUG mode)"OFF)
13
-
option(MI_GUARDED"Build with guard pages behind certain object allocations (implies MI_NO_PADDING=ON)"OFF)
13
+
option(MI_TRACK_VALGRIND"Compile with Valgrind support (adds a small overhead)"OFF)
14
+
option(MI_TRACK_ASAN"Compile with address sanitizer support (adds a small overhead)"OFF)
15
+
option(MI_TRACK_ETW"Compile with Windows event tracing (ETW) support (adds a small overhead)"OFF)
14
16
option(MI_USE_CXX"Use the C++ compiler to compile the library (instead of the C compiler)"OFF)
15
-
option(MI_OPT_ARCH"Only for optimized builds: turn on architecture specific optimizations (for x64: '-march=haswell;-mavx2' (2013), for arm64: '-march=armv8.1-a' (2016))"OFF)
16
-
option(MI_OPT_SIMD"Use SIMD instructions (requires MI_OPT_ARCH to be enabled)"OFF)
17
+
option(MI_OPT_ARCH"Only for optimized builds: turn on architecture specific optimizations (for arm64: '-march=armv8.1-a' (2016))"OFF)
17
18
option(MI_SEE_ASM"Generate assembly files"OFF)
18
19
option(MI_OSX_INTERPOSE"Use interpose to override standard malloc on macOS"ON)
19
20
option(MI_OSX_ZONE"Use malloc zone to override standard malloc on macOS"ON)
20
21
option(MI_WIN_REDIRECT"Use redirection module ('mimalloc-redirect') on Windows if compiling mimalloc as a DLL"ON)
21
22
option(MI_WIN_USE_FIXED_TLS"Use a fixed TLS slot on Windows to avoid extra tests in the malloc fast path"OFF)
22
23
option(MI_LOCAL_DYNAMIC_TLS"Use local-dynamic-tls, a slightly slower but dlopen-compatible thread local storage mechanism (Unix)"OFF)
23
-
option(MI_LIBC_MUSL"Enable this when linking with musl libc"OFF)
24
-
25
-
option(MI_DEBUG_TSAN"Build with thread sanitizer (needs clang)"OFF)
26
-
option(MI_DEBUG_UBSAN"Build with undefined-behavior sanitizer (needs clang++)"OFF)
27
-
option(MI_TRACK_VALGRIND"Compile with Valgrind support (adds a small overhead)"OFF)
28
-
option(MI_TRACK_ASAN"Compile with address sanitizer support (adds a small overhead)"OFF)
29
-
option(MI_TRACK_ETW"Compile with Windows event tracing (ETW) support (adds a small overhead)"OFF)
30
-
24
+
option(MI_LIBC_MUSL"Set this when linking with musl libc"OFF)
31
25
option(MI_BUILD_SHARED"Build shared library"ON)
32
26
option(MI_BUILD_STATIC"Build static library"ON)
33
27
option(MI_BUILD_OBJECT"Build object library"ON)
34
28
option(MI_BUILD_TESTS"Build test executables"ON)
35
-
29
+
option(MI_DEBUG_TSAN"Build with thread sanitizer (needs clang)"OFF)
30
+
option(MI_DEBUG_UBSAN"Build with undefined-behavior sanitizer (needs clang++)"OFF)
31
+
option(MI_GUARDED"Build with guard pages behind certain object allocations (implies MI_NO_PADDING=ON)"OFF)
36
32
option(MI_SKIP_COLLECT_ON_EXIT"Skip collecting memory on program exit"OFF)
37
33
option(MI_NO_PADDING"Force no use of padding even in DEBUG mode etc."OFF)
38
34
option(MI_INSTALL_TOPLEVEL"Install directly into $CMAKE_INSTALL_PREFIX instead of PREFIX/lib/mimalloc-version"OFF)
@@ -58,16 +54,16 @@ set(mi_sources
58
54
src/alloc-aligned.c
59
55
src/alloc-posix.c
60
56
src/arena.c
61
-
src/arena-meta.c
62
57
src/bitmap.c
63
58
src/heap.c
64
59
src/init.c
65
60
src/libc.c
66
61
src/options.c
67
62
src/os.c
68
63
src/page.c
69
-
src/page-map.c
70
64
src/random.c
65
+
src/segment.c
66
+
src/segment-map.c
71
67
src/stats.c
72
68
src/prim/prim.c)
73
69
@@ -130,7 +126,7 @@ elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(x86_64|x64|amd64|AMD64)$" OR CMAKE_GENE
0 commit comments