aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc.h
diff options
context:
space:
mode:
authorPeer Stritzinger <[email protected]>2017-06-26 19:18:10 +0200
committerSebastien Merle <[email protected]>2018-01-24 17:08:50 +0100
commitcd1253b9d13b7f0e7cdae995d35bf10c3d537053 (patch)
treea66b56287358f377e052c93a4330dc5d8f1cdf9c /erts/emulator/beam/erl_alloc.h
parentb06e5e8c70f4447cbd410094254cc45f95ff241d (diff)
downloadotp-cd1253b9d13b7f0e7cdae995d35bf10c3d537053.tar.gz
otp-cd1253b9d13b7f0e7cdae995d35bf10c3d537053.tar.bz2
otp-cd1253b9d13b7f0e7cdae995d35bf10c3d537053.zip
Make sure ERTS_WRITE_UNLIKELY section is also set on declaration
Otherwise on targets which have small data area with short addressing like on PowerPC ther will be linking errors due to the mismatch of declaration/usage and definition.
Diffstat (limited to 'erts/emulator/beam/erl_alloc.h')
-rw-r--r--erts/emulator/beam/erl_alloc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/erts/emulator/beam/erl_alloc.h b/erts/emulator/beam/erl_alloc.h
index 117f96a4ad..efde36e47a 100644
--- a/erts/emulator/beam/erl_alloc.h
+++ b/erts/emulator/beam/erl_alloc.h
@@ -126,8 +126,10 @@ typedef struct {
void *extra;
} ErtsAllocatorFunctions_t;
-extern ErtsAllocatorFunctions_t erts_allctrs[ERTS_ALC_A_MAX+1];
-extern ErtsAllocatorInfo_t erts_allctrs_info[ERTS_ALC_A_MAX+1];
+extern ErtsAllocatorFunctions_t
+ ERTS_WRITE_UNLIKELY(erts_allctrs[ERTS_ALC_A_MAX+1]);
+extern ErtsAllocatorInfo_t
+ ERTS_WRITE_UNLIKELY(erts_allctrs_info[ERTS_ALC_A_MAX+1]);
typedef struct {
int enabled;