aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2015-12-09 10:20:38 +0100
committerRickard Green <[email protected]>2015-12-09 10:20:38 +0100
commit9805ea44b04b4d7db65fc6d6369addb223040032 (patch)
tree4ad98242858551b5912a04c553dc3a239ec0cb36 /erts/emulator
parent19c4689eea86f26c5af9b8f712c227ce4f62310b (diff)
downloadotp-9805ea44b04b4d7db65fc6d6369addb223040032.tar.gz
otp-9805ea44b04b4d7db65fc6d6369addb223040032.tar.bz2
otp-9805ea44b04b4d7db65fc6d6369addb223040032.zip
Fix check_process_code()
Diffstat (limited to 'erts/emulator')
-rw-r--r--erts/emulator/beam/beam_bif_load.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/erts/emulator/beam/beam_bif_load.c b/erts/emulator/beam/beam_bif_load.c
index c3ebf71a01..8e6123eacd 100644
--- a/erts/emulator/beam/beam_bif_load.c
+++ b/erts/emulator/beam/beam_bif_load.c
@@ -837,10 +837,10 @@ check_process_code(Process* rp, Module* modp, int allow_gc, int *redsp)
if (check_mod_funs(rp, &hfrag->off_heap, mod_start, mod_size))
return am_true;
/* Should not contain any constants... */
- ASSERT(!any_heap_ref_ptrs(&hfrag->mem[0],
- &hfrag->mem[hfrag->used_size],
- mod_start,
- mod_size));
+ ASSERT(!any_heap_refs(&hfrag->mem[0],
+ &hfrag->mem[hfrag->used_size],
+ mod_start,
+ mod_size));
}
}
@@ -881,7 +881,7 @@ check_process_code(Process* rp, Module* modp, int allow_gc, int *redsp)
hp = &hfrag->mem[0];
hp_end = &hfrag->mem[hfrag->used_size];
- if (any_heap_ref_ptrs(hp, hp_end, mod_start, lit_bsize))
+ if (any_heap_refs(hp, hp_end, mod_start, lit_bsize))
goto try_literal_gc;
}
@@ -902,7 +902,7 @@ check_process_code(Process* rp, Module* modp, int allow_gc, int *redsp)
hp = &hfrag->mem[0];
hp_end = &hfrag->mem[hfrag->used_size];
- ASSERT(!any_heap_ref_ptrs(hp, hp_end, mod_start, lit_bsize));
+ ASSERT(!any_heap_refs(hp, hp_end, mod_start, lit_bsize));
}
}