mingw: drop the build-system plumbing for nedmalloc
With the previous commit removing every opt-in, the build-system plumbing for nedmalloc has nothing left to switch on. Remove it so that the upcoming deletion of the compat/nedmalloc/ tree is a pure file removal. Assisted-by: Opus 4.7 Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
May 8, 2026 at 12:50 UTC
cefcada1d3084ae6df4ac8b00d1c19fd6ea00ed1
4 files changed
-20
Makefile
-17
@@ -283,13 +283,9 @@ include shared.mak
283
# Define SKIP_DASHED_BUILT_INS if you do not need the dashed versions of the
284
# built-ins to be linked/copied at all.
285
#
286
-# Define USE_NED_ALLOCATOR if you want to replace the platforms default
287
-# memory allocators with the nedmalloc allocator written by Niall Douglas.
288
-#
286
# Define OVERRIDE_STRDUP to override the libc version of strdup(3).
287
# This is necessary when using a custom allocator in order to avoid
288
# crashes due to allocation and free working on different 'heaps'.
292
-# It's defined automatically if USE_NED_ALLOCATOR is set.
289
#
290
# Define NO_REGEX if your C library lacks regex support with REG_STARTEND
291
# feature.
@@ -1511,7 +1507,6 @@ BUILTIN_OBJS += builtin/write-tree.o
1507
# upstream unnecessarily (making merging in future changes easier).
1508
THIRD_PARTY_SOURCES += compat/inet_ntop.c
1509
THIRD_PARTY_SOURCES += compat/inet_pton.c
1514
-THIRD_PARTY_SOURCES += compat/nedmalloc/%
1510
THIRD_PARTY_SOURCES += compat/obstack.%
1511
THIRD_PARTY_SOURCES += compat/poll/%
1512
THIRD_PARTY_SOURCES += compat/regex/%
@@ -2267,12 +2262,6 @@ ifdef NATIVE_CRLF
2262
BASIC_CFLAGS += -DNATIVE_CRLF
2263
endif
2264
2270
-ifdef USE_NED_ALLOCATOR
2271
- COMPAT_CFLAGS += -Icompat/nedmalloc
2272
- COMPAT_OBJS += compat/nedmalloc/nedmalloc.o
2273
- OVERRIDE_STRDUP = YesPlease
2274
-endif
2275
-
2265
ifdef OVERRIDE_STRDUP
2266
COMPAT_CFLAGS += -DOVERRIDE_STRDUP
2267
COMPAT_OBJS += compat/strdup.o
@@ -2983,12 +2972,6 @@ compat/regex/regex.sp compat/regex/regex.o: EXTRA_CPPFLAGS = \
2972
-DGAWK -DNO_MBSUPPORT
2973
endif
2974
2986
-ifdef USE_NED_ALLOCATOR
2987
-compat/nedmalloc/nedmalloc.sp compat/nedmalloc/nedmalloc.o: EXTRA_CPPFLAGS = \
2988
- -DNDEBUG -DREPLACE_SYSTEM_ALLOCATOR
2989
-compat/nedmalloc/nedmalloc.sp: SP_EXTRA_FLAGS += -Wno-non-pointer-null
2990
-endif
2991
-
2975
headless-git.o: compat/win32/headless.c GIT-CFLAGS
2976
$(QUIET_CC)$(CC) $(ALL_CFLAGS) $(COMPAT_CFLAGS) \
2977
-fno-stack-protector -o $@ -c -Wall -Wwrite-strings $<
config.mak.uname
-1
@@ -491,7 +491,6 @@ ifeq ($(uname_S),Windows)
491
USE_WIN32_IPC = YesPlease
492
USE_WIN32_MMAP = YesPlease
493
MMAP_PREVENTS_DELETE = UnfortunatelyYes
494
- # USE_NED_ALLOCATOR = YesPlease
494
UNRELIABLE_FSTAT = UnfortunatelyYes
495
OBJECT_CREATION_USES_RENAMES = UnfortunatelyNeedsTo
496
NO_REGEX = YesPlease
contrib/vscode/init.sh
-1
@@ -202,7 +202,6 @@ cat >.vscode/settings.json.new <<\EOF ||
202
"\\bUSE_STDEV\\b",
203
"\\Wchar *\\*\\W*utfs\\W",
204
"cURL's",
205
- "nedmalloc'ed",
205
"ntifs\\.h",
206
],
207
}
meson.build
-1
@@ -698,7 +698,6 @@ third_party_excludes = [
698
':!contrib',
699
':!compat/inet_ntop.c',
700
':!compat/inet_pton.c',
701
- ':!compat/nedmalloc',
701
':!compat/obstack.*',
702
':!compat/poll',
703
':!compat/regex',