From 8fa441bf5c9a995d3a66da8eb55d244f4b6c7bbd Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 13 Aug 2015 21:02:09 +0200 Subject: [PATCH] libroot_debug: Revert to a legacy default alignment of 8. This reverts the legacy default alignment (in absence of max_align_t) to 8, as it was before. --- src/system/libroot/posix/malloc_debug/guarded_heap.cpp | 2 +- src/system/libroot/posix/malloc_debug/heap.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/libroot/posix/malloc_debug/guarded_heap.cpp b/src/system/libroot/posix/malloc_debug/guarded_heap.cpp index f8d2c7c27a..728ae2373a 100644 --- a/src/system/libroot/posix/malloc_debug/guarded_heap.cpp +++ b/src/system/libroot/posix/malloc_debug/guarded_heap.cpp @@ -38,7 +38,7 @@ static int32 sStackEndTLSIndex = -1; using namespace std; static size_t sDefaultAlignment = alignof(max_align_t); #else -static size_t sDefaultAlignment = 0; +static size_t sDefaultAlignment = 8; #endif diff --git a/src/system/libroot/posix/malloc_debug/heap.cpp b/src/system/libroot/posix/malloc_debug/heap.cpp index 096fd699b2..3c9ed49218 100644 --- a/src/system/libroot/posix/malloc_debug/heap.cpp +++ b/src/system/libroot/posix/malloc_debug/heap.cpp @@ -54,7 +54,7 @@ static bool sUseGuardPage = false; using namespace std; static size_t sDefaultAlignment = alignof(max_align_t); #else -static size_t sDefaultAlignment = 0; +static size_t sDefaultAlignment = 8; #endif