Martin Leitner-Ankerl bcc183ccce
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*).

Github-Pull: #28913
Rebased-From: ce881bf9fcb7c30bb1fafd6ce38844f4f829452a
2023-11-22 11:33:01 +00:00
..
2023-03-23 12:55:18 +01:00
2023-06-23 14:24:32 -04:00
2023-10-12 11:27:19 +02:00
2021-12-30 19:36:57 +02:00
2023-10-12 11:27:19 +02:00