Fix renderer crash in GCC 7.5.

The 'arena' allocator does not take memory alignment into account, which
can result in crashes at -O3 with gcc 7.5 (presumably because of SSE
instructions).

This accounts for alignment issues, fixing the issue.
Also do various cleanup in lib/allocators.

Reported by: Bellaz89, Freagarach
Comments by: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D3181
This was SVN commit r24517.
This commit is contained in:
wraitii
2021-01-06 14:56:17 +00:00
parent 58d98c9a5f
commit 8ae3c09dc0
16 changed files with 429 additions and 1552 deletions
@@ -1,4 +1,4 @@
/* Copyright (C) 2020 Wildfire Games.
/* Copyright (C) 2021 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -21,7 +21,6 @@
#include "ISerializer.h"
#include "lib/byte_order.h"
#include "lib/allocators/arena.h"
#include <iostream>
#include <map>