aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_alloc.h
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2018-02-06 10:00:37 +0100
committerGitHub <[email protected]>2018-02-06 10:00:37 +0100
commit3cb3d5c1927e6235b0e51ba7ca31e2a3458fba01 (patch)
treed7e5f721463209b9336df262ecb146f64b7a0ea2 /erts/emulator/beam/erl_alloc.h
parent1c0843886908513a2a6bd5f315010acf5668e2b9 (diff)
parent2207e5248bbaf2961f179ddcc1dabbab292ca3c9 (diff)
downloadotp-3cb3d5c1927e6235b0e51ba7ca31e2a3458fba01.tar.gz
otp-3cb3d5c1927e6235b0e51ba7ca31e2a3458fba01.tar.bz2
otp-3cb3d5c1927e6235b0e51ba7ca31e2a3458fba01.zip
grisp/fix-powerpc-rtems-build/PR-1692/OTP-14909
Fix the build on targets with small data area
Diffstat (limited to 'erts/emulator/beam/erl_alloc.h')
-rw-r--r--erts/emulator/beam/erl_alloc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/erts/emulator/beam/erl_alloc.h b/erts/emulator/beam/erl_alloc.h
index 117f96a4ad..0438b7cd8c 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;
@@ -144,7 +146,7 @@ typedef struct ErtsAllocatorWrapper_t_ {
void (*unlock)(void);
struct ErtsAllocatorWrapper_t_* next;
}ErtsAllocatorWrapper_t;
-ErtsAllocatorWrapper_t *erts_allctr_wrappers;
+extern ErtsAllocatorWrapper_t *erts_allctr_wrappers;
extern int erts_allctr_wrapper_prelocked;
extern erts_tsd_key_t erts_allctr_prelock_tsd_key;
void erts_allctr_wrapper_prelock_init(ErtsAllocatorWrapper_t* wrapper);