Skip to content

Commit fca69d2

Browse files
committed
fixup! mimalloc: offer a build-time option to enable it
To make `MIMALLOC_SHOW_STATS` work (setting this environment variable will print out statistics about the allocations in the process just before it terminates), we need to use mimalloc's "Fiber" based process termination handling that was introduced in aa881733 (reorganize primitives for process initialization; use special data segment on Windows for thread termination by default on Windows now (issue #869), 2024-10-21): It requires UCRT which we do not use in Git for Windows' GCC-based builds. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent a9189ba commit fca69d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2195,6 +2195,7 @@ ifdef USE_MIMALLOC
21952195
$(MIMALLOC_OBJS): COMPAT_CFLAGS += -DBANNED_H
21962196

21972197
$(MIMALLOC_OBJS): COMPAT_CFLAGS += \
2198+
-DMI_WIN_USE_FLS \
21982199
-Wno-attributes \
21992200
-Wno-unknown-pragmas \
22002201
-Wno-unused-function \

0 commit comments

Comments
 (0)