diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-06-22 08:23:32 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-06-22 08:23:32 +0300 |
commit | 0fa19fdebf0925be6ec5503938d541332f259cb5 (patch) | |
tree | 3a104740871e4e28ca51ff771f25deba0dfa1461 /sql/log_event.cc | |
parent | 37946731110246b89607b85b391f32b0f390524e (diff) | |
download | mariadb-git-0fa19fdebf0925be6ec5503938d541332f259cb5.tar.gz |
MDEV-28836 fixup
On GNU/Linux, even though the C11 aligned_alloc() appeared in
GNU libc early on, some custom memory allocators did not
implement it until recently. For example, before
gperftools/gperftools@d406f2285390c402e824dd28e6992f7f890dcdf9
the free() in tcmalloc would fail to free memory that was
returned by aligned_alloc(), because the latter would map to the
built-in allocator of libc. The Linux specific memalign() has a
similar interface and is safer to use, because it has been
available for a longer time. For AddressSanitizer, we will use
aligned_alloc() so that the constraint on size can be enforced.
buf_tmp_reserve_compression_buf(): When HAVE_ALIGNED_ALLOC holds,
round up the size to be an integer multiple of the alignment.
pfs_malloc(): In the unit test stub, round up the size to be an
integer multiple of the alignment.
Diffstat (limited to 'sql/log_event.cc')
0 files changed, 0 insertions, 0 deletions