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