aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_bif_load.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/beam_bif_load.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/beam_bif_load.c')
-rw-r--r--erts/emulator/beam/beam_bif_load.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/erts/emulator/beam/beam_bif_load.c b/erts/emulator/beam/beam_bif_load.c
index 8b5d1a0391..15e878ba65 100644
--- a/erts/emulator/beam/beam_bif_load.c
+++ b/erts/emulator/beam/beam_bif_load.c
@@ -949,10 +949,7 @@ check_process_code(Process* rp, Module* modp, Uint flags, int *redsp, int fcalls
* - Check for literals
*/
for (msgp = rp->msg_frag; msgp; msgp = msgp->next) {
- if (msgp->data.attached == ERTS_MSG_COMBINED_HFRAG)
- hfrag = &msgp->hfrag;
- else
- hfrag = msgp->data.heap_frag;
+ hfrag = erts_message_to_heap_frag(msgp);
for (; hfrag; hfrag = hfrag->next) {
Eterm *hp, *hp_end;
ASSERT(!check_mod_funs(rp, &hfrag->off_heap, mod_start, mod_size));