0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-20 12:12:41 -05:00
bitcoin-bitcoin-core/src/support/allocators
Martin Leitner-Ankerl ce881bf9fc pool: make sure PoolAllocator uses the correct alignment
This changes the PoolAllocator to default the alignment to the given type. This makes the code simpler, and most importantly
fixes a bug on ARM 32bit that caused OOM: The class CTxOut has a member CAmount which is an int64_t and on ARM 32bit int64_t
are 8 byte aligned which is larger than the pointer alignment of 4 bytes. So for CCoinsMap to be able to use the pool, we
need to use the alignment of the member instead of just alignof(void*).
2023-11-19 18:43:29 +01:00
..
pool.h pool: make sure PoolAllocator uses the correct alignment 2023-11-19 18:43:29 +01:00
secure.h Add make_secure_unique helper 2023-09-27 15:05:15 -04:00
zeroafterfree.h Don't derive secure_allocator from std::allocator 2023-07-24 22:33:40 -07:00