diff options
author | Sverker Eriksson <sverker@erlang.org> | 2019-09-05 14:22:09 +0200 |
---|---|---|
committer | Sverker Eriksson <sverker@erlang.org> | 2019-09-05 16:36:59 +0200 |
commit | 780dec30bd9603d8fc1b186b28c24bd499d571fb (patch) | |
tree | e096ed05553642df5f3714b7819d9c2a9deab661 /erts/emulator/beam/erl_node_tables.c | |
parent | 31046d4925e73705995245db5454a0aa4a33b30f (diff) | |
download | erlang-780dec30bd9603d8fc1b186b28c24bd499d571fb.tar.gz |
erts: Fix ets compressed offheap inspections
with unaligned ProcBins.
Diffstat (limited to 'erts/emulator/beam/erl_node_tables.c')
-rw-r--r-- | erts/emulator/beam/erl_node_tables.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_node_tables.c b/erts/emulator/beam/erl_node_tables.c index 50e9812534..8863e219e2 100644 --- a/erts/emulator/beam/erl_node_tables.c +++ b/erts/emulator/beam/erl_node_tables.c @@ -1509,10 +1509,12 @@ static void insert_offheap(ErlOffHeap *oh, int type, Eterm id) { union erl_off_heap_ptr u; + struct erts_tmp_aligned_offheap tmp; struct insert_offheap2_arg a; a.type = BIN_REF; for (u.hdr = oh->first; u.hdr; u.hdr = u.hdr->next) { + erts_align_offheap(&u, &tmp); switch (thing_subtag(u.hdr->thing_word)) { case REF_SUBTAG: if (ErtsIsDistEntryBinary(u.mref->mb)) |