8ea425d95d
This `operator new` added in ecc3e78d787cce8a3f202e7de26575e2d47baea2 are only called if the alignment is greater than `__STDCPP_DEFAULT_NEW_ALIGNMENT__`. This is generally 8 or 16 depending on the platform. `MEM_mallocN` does guarantee 16 byte alignment currently (in fact it's usually not 16 byte aligned because of `MemHead`). Now `MEM_mallocN_aligned` is used with the default alignment, even if we don't know that the type does not require it. An alternative would be to pass the alignment to `MEM_CXX_CLASS_ALLOC_FUNCS`, but that would be more intrusive. Pull Request: https://projects.blender.org/blender/blender/pulls/118568 |
||
---|---|---|
.. | ||
cpp | ||
intern | ||
test/simpletest | ||
tests | ||
CMakeLists.txt | ||
MEM_guardedalloc.h |