]> git.ipfire.org Git - thirdparty/squid.git/commit
Remove custom global new/delete operators (#839)
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 6 Jun 2021 15:36:45 +0000 (15:36 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Fri, 11 Jun 2021 01:11:27 +0000 (01:11 +0000)
commit9f6b193f49769be8bcc7db680b555f15ea6c8ba9
tree54489c58078f24e4c7fbf2f4473356aa24ed7e17
parent7c35cc9028470dbd383d19ce73e8ffab4e69cc10
Remove custom global new/delete operators (#839)

These custom operators did not cover all new/delete cases (e.g., array
allocations), were not declared according to C++ standards (triggering
compiler warnings), and were not enabled in clang builds.

These customizations enabled custom OOM handling (for covered cases),
but it is not clear whether that feature is desirable overall, and C++
has better ways to implement such handling (i.e. set_new_handler()).

These customizations participated in collection of optional statistics
(--enable-xmalloc-statistics), but it is not clear whether that feature
implementation is good enough, and, even if it is, providing these
partial stats does not outweigh recurring customization problems.
src/Makefile.am
src/SquidNew.cc [deleted file]
src/icmp/Makefile.am