aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix
diff options
context:
space:
mode:
authorMotiejus Jakštys <[email protected]>2013-12-15 20:08:50 +0100
committerMotiejus Jakštys <[email protected]>2013-12-15 20:20:55 +0100
commitf5de34c3f54f1798c0932d9cb41929134649aa08 (patch)
tree303cf1940b511bf0abad526c474ac5cb043afbc4 /erts/emulator/sys/unix
parent16c4d1edacb1feeb394ebb6c49e2c04fcbd4d1b2 (diff)
downloadotp-f5de34c3f54f1798c0932d9cb41929134649aa08.tar.gz
otp-f5de34c3f54f1798c0932d9cb41929134649aa08.tar.bz2
otp-f5de34c3f54f1798c0932d9cb41929134649aa08.zip
Undefined MALLOC_USE_HASH macro on TileMDE3
MALLOC_USE_HASH is not defined in TileraMDE-3, but exists in TileraMDE-2. So use macro conditionally.
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r--erts/emulator/sys/unix/sys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/sys/unix/sys.c b/erts/emulator/sys/unix/sys.c
index 61f9f6a59a..a71ae4e864 100644
--- a/erts/emulator/sys/unix/sys.c
+++ b/erts/emulator/sys/unix/sys.c
@@ -409,8 +409,10 @@ void sys_tty_reset(int exit_code)
#ifdef __tile__
/* Direct malloc to spread memory around the caches of multiple tiles. */
#include <malloc.h>
+#if defined(MALLOC_USE_HASH)
MALLOC_USE_HASH(1);
#endif
+#endif
#ifdef USE_THREADS