diff options
author | Rickard Green <[email protected]> | 2013-09-11 21:49:32 +0200 |
---|---|---|
committer | Rickard Green <[email protected]> | 2013-09-25 16:24:31 +0200 |
commit | cabfe2cdc0b8d879431f81233addd2a43ff1f742 (patch) | |
tree | 8971e09324be75eefaa259acdf7cfcc91d9bf280 /erts/emulator/beam/sys.h | |
parent | f083e4298d751bb564915b03f0c32114d533d086 (diff) | |
download | otp-cabfe2cdc0b8d879431f81233addd2a43ff1f742.tar.gz otp-cabfe2cdc0b8d879431f81233addd2a43ff1f742.tar.bz2 otp-cabfe2cdc0b8d879431f81233addd2a43ff1f742.zip |
Implement platform specific aligned sys_alloc and use when supported
erts_sys_aligned_alloc() is currently implemented using posix_memalign if
it exist, or using _aligned_malloc on Windows.
If erts_sys_aligned_alloc() exist allocators will create sys_alloc
carriers similar to how this was done pre-R16.
Diffstat (limited to 'erts/emulator/beam/sys.h')
-rw-r--r-- | erts/emulator/beam/sys.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/sys.h b/erts/emulator/beam/sys.h index 05bff430e3..096394b878 100644 --- a/erts/emulator/beam/sys.h +++ b/erts/emulator/beam/sys.h @@ -1012,6 +1012,9 @@ void erl_bin_write(unsigned char *, int, int); #define ERTS_SMALL_ABS(Small) labs(Small) #endif +#ifndef ERTS_HAVE_ERTS_SYS_ALIGNED_ALLOC +# define ERTS_HAVE_ERTS_SYS_ALIGNED_ALLOC 0 +#endif #ifdef __WIN32__ void call_break_handler(void); |