tornavis/intern/guardedalloc
Julian Eisel 4aeb6add6e Guarded allocator: Document non-obvious initialization with MEM_new()
Initialization with `MEM_new()` depends a lot on the initialization rules
of C++, which are not obvious. Calling it with no arguments to be passed
to the constructor may cause the resulting object to be implicitly 0
initialized (or parts of it). This can have an impact on performance
sensitive code, so it's something to document.

Alternatively we could enforce default initialization (as opposed to the
value initalization that happens now), but this could cause
uninitialized memory in a way that isn't obvious either. This is a
possible source of bugs, so Jacques and I decided against it.
2022-02-04 16:57:46 +01:00
..
cpp Cleanup: reorganize doxygen modules 2021-12-14 20:56:11 +11:00
intern Cleanup: reorganize doxygen modules 2021-12-14 20:56:11 +11:00
test/simpletest Cleanup: full sentences in comments, improve comment formatting 2021-06-26 21:50:48 +10:00
tests Guarded allocator: Fix lock-free allocator tests 2020-11-19 16:17:48 +01:00
CMakeLists.txt CMake/guardedalloc: add header file to TEST_SRC 2021-03-14 18:11:24 +05:30
MEM_guardedalloc.h Guarded allocator: Document non-obvious initialization with MEM_new() 2022-02-04 16:57:46 +01:00