aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_gc.c
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-18 19:45:42 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-20 18:34:52 +0200
commit703eea866831dea0753c5cd151d6d8d55debd470 (patch)
tree8fc72e0f1499bd0ff1129d094c258b4125fdf899 /erts/emulator/beam/erl_gc.c
parent9effc6a6c52d9c492925c4271743d06d68d04bcb (diff)
downloadotp-703eea866831dea0753c5cd151d6d8d55debd470.tar.gz
otp-703eea866831dea0753c5cd151d6d8d55debd470.tar.bz2
otp-703eea866831dea0753c5cd151d6d8d55debd470.zip
erts: Refactor ERTS_MSG_COMBINED_HFRAG to heap fragment
Diffstat (limited to 'erts/emulator/beam/erl_gc.c')
-rw-r--r--erts/emulator/beam/erl_gc.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c
index d740b2baec..374da9407c 100644
--- a/erts/emulator/beam/erl_gc.c
+++ b/erts/emulator/beam/erl_gc.c
@@ -2279,10 +2279,7 @@ move_msgq_to_heap(Process *p)
}
else {
- if (mp->data.attached == ERTS_MSG_COMBINED_HFRAG)
- bp = &mp->hfrag;
- else
- bp = mp->data.heap_frag;
+ bp = erts_message_to_heap_frag(mp);
if (bp->next)
erts_move_multi_frags(&factory.hp, factory.off_heap, bp,
@@ -3304,11 +3301,7 @@ within2(Eterm *ptr, Process *p, Eterm *real_htop)
while (mp) {
- if (mp->data.attached == ERTS_MSG_COMBINED_HFRAG)
- bp = &mp->hfrag;
- else
- bp = mp->data.heap_frag;
-
+ bp = erts_message_to_heap_frag(mp);
mp = mp->next;
search_heap_frags: