0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-13 11:25:02 -05:00
bitcoin-bitcoin-core/src/support
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
..
allocators pool: make sure PoolAllocator uses the correct alignment 2023-11-19 18:43:29 +01:00
cleanse.cpp scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
cleanse.h scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
events.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
lockedpool.cpp util: Remove duplicate include 2023-02-23 17:58:40 -05:00
lockedpool.h Merge bitcoin/bitcoin#16195: util: Use void* throughout support/lockedpool.h 2023-02-23 15:44:42 -05:00