diff options
author | Lukas Larsson <[email protected]> | 2018-12-03 14:42:15 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2018-12-03 14:42:15 +0100 |
commit | 7515f713da271618c688de768f1586280fcc9635 (patch) | |
tree | 0b139876b58ecc12ba21727138db9459fc19227d /erts/emulator/beam/erl_alloc_util.c | |
parent | 28d77314ceb96cda8f270eccaa60af625bbe0e76 (diff) | |
parent | 0d24aecf46f9f387d64f06744f8a55b841669d1e (diff) | |
download | otp-7515f713da271618c688de768f1586280fcc9635.tar.gz otp-7515f713da271618c688de768f1586280fcc9635.tar.bz2 otp-7515f713da271618c688de768f1586280fcc9635.zip |
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/beam/erl_alloc_util.c')
-rw-r--r-- | erts/emulator/beam/erl_alloc_util.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_alloc_util.c b/erts/emulator/beam/erl_alloc_util.c index b7a8b9c2d0..5364ca0cbf 100644 --- a/erts/emulator/beam/erl_alloc_util.c +++ b/erts/emulator/beam/erl_alloc_util.c @@ -872,6 +872,8 @@ static ERTS_INLINE void clr_bit(UWord* map, Uint ix) &= ~((UWord)1 << (ix % ERTS_VSPACE_WORD_BITS)); } +#ifdef DEBUG + static ERTS_INLINE int is_bit_set(UWord* map, Uint ix) { ASSERT(ix / ERTS_VSPACE_WORD_BITS < VSPACE_MAP_SZ); @@ -879,6 +881,8 @@ static ERTS_INLINE int is_bit_set(UWord* map, Uint ix) & ((UWord)1 << (ix % ERTS_VSPACE_WORD_BITS)); } +#endif + UWord erts_literal_vspace_map[VSPACE_MAP_SZ]; static void set_literal_range(void* start, Uint size) |