Repository navigation
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
c66e0ac to
7ddbf80
Compare
7d74ea5 to
3a5a9f6
Compare
29ad8a3 to
7e1577b
Compare
7e1577b to
e301c93
Compare
memdebug.h includes|
Before the override refactor (3bb5e58), overrides were never reset in tests,. After the refactor, tests do reset overrides in an accidental way: In such case a per-source Dedicing which is happening for an individual source is non-trivial. So we'd want to keep including But that still doesn't solve the accidental reset behavior. To make But, but, if we disable this feature in |
|
Closing in favor of #19626, which aims to be solving this automatically. |
Follow-up to 3bb5e58 #17827
memdebug.hshould be included last, but for tests this wasnot done like that since the introduction of bundle builds. It
hasn't caused an issue in practice. Let's de-duplicate
memdebug.hincludes to make this exception more visible.
In case it causes problems in the future, the way to fix is to undef
(via
curl_mem_undef.hmerged in #17827) redefinitions beforeincluding per-source headers that include a system header that's
sensitive to those redefinitions. This happens rarely in test code.
undef/redef around 3rd-party includes after merging memory: make function overrides work reliably in unity builds #17827
potential redefinitions issues in tests that include system headers:
lib571, lib1960, tool1621, unit1305, unit1663, unit1664, unit2600
perhaps a better approach is to reduce / stop doing these
overrides. ATM what's left is the allocation functions, the printfs
ones, and some outliers. Of these the allocation function may
be the problematic ones in practice. → build: stop overriding standard memory allocation functions #19626
pending switching from free/malloc overrides to
curlx_allocators.Will have a better picture how to finish this once that's done. → build: stop overriding standard memory allocation functions #19626