aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2018-03-08 11:29:14 +0100
committerRickard Green <[email protected]>2018-03-13 18:03:56 +0100
commit4cf4044313ae5a1a349fcedd3d2472c3b6ed3fe7 (patch)
tree44aee11d9d29b7f467725b7a06126228df6a7fe4 /erts/configure.in
parentfbb10ebc4a37555c7ea7f99e14286d862993976a (diff)
downloadotp-4cf4044313ae5a1a349fcedd3d2472c3b6ed3fe7.tar.gz
otp-4cf4044313ae5a1a349fcedd3d2472c3b6ed3fe7.tar.bz2
otp-4cf4044313ae5a1a349fcedd3d2472c3b6ed3fe7.zip
Force 64-bit alignment for pre-allocators unless x86
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/erts/configure.in b/erts/configure.in
index b2435f1ac9..820247b4b8 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -2721,6 +2721,13 @@ LIBS=$saved_libs
dnl restore CPPFLAGS
CPPFLAGS=$saved_cppflags
+case $ARCH in
+ x86|amd64)
+ AC_DEFINE(ERTS_STRUCTURE_ALIGNED_ALLOC, 1, [Define if structure alignment is enough for allocators. If not defined, 64-bit alignment will be forced.]);;
+ *)
+ ;;
+esac
+
LM_SYS_IPV6
LM_SYS_MULTICAST
ERL_TIME_CORRECTION