diff options
author | Sverker Eriksson <[email protected]> | 2016-12-21 17:41:43 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-01-04 20:09:16 +0100 |
commit | fb4e0f8726d2e3033164fe6e44c49351c6b641de (patch) | |
tree | c016f6f674000fb292dfe13df1a5200968a57a8f /erts/emulator/hipe/hipe_gc.c | |
parent | b60bdd762bc2f42b3e4eebf7256e7aa9e79dced1 (diff) | |
download | otp-fb4e0f8726d2e3033164fe6e44c49351c6b641de.tar.gz otp-fb4e0f8726d2e3033164fe6e44c49351c6b641de.tar.bz2 otp-fb4e0f8726d2e3033164fe6e44c49351c6b641de.zip |
erts: Make erts_dbg_within_proc available
for debug assertions.
Diffstat (limited to 'erts/emulator/hipe/hipe_gc.c')
-rw-r--r-- | erts/emulator/hipe/hipe_gc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/erts/emulator/hipe/hipe_gc.c b/erts/emulator/hipe/hipe_gc.c index e6ce7ce628..cf0435adc9 100644 --- a/erts/emulator/hipe/hipe_gc.c +++ b/erts/emulator/hipe/hipe_gc.c @@ -99,7 +99,7 @@ Eterm *fullsweep_nstack(Process *p, Eterm *n_htop) if (IS_MOVED_CONS(val)) { *nsp_i = ptr[1]; } else if (!erts_is_literal(gval, ptr)) { - ASSERT(within(ptr, p)); + ASSERT(erts_dbg_within_proc(ptr, p, NULL)); MOVE_CONS(ptr, val, n_htop, nsp_i); } } @@ -208,7 +208,7 @@ void gensweep_nstack(Process *p, Eterm **ptr_old_htop, Eterm **ptr_n_htop) } else if (ErtsInArea(ptr, mature, mature_size)) { MOVE_BOXED(ptr, val, old_htop, nsp_i); } else if (ErtsInYoungGen(gval, ptr, oh, oh_size)) { - ASSERT(within(ptr, p)); + ASSERT(erts_dbg_within_proc(ptr, p, NULL)); MOVE_BOXED(ptr, val, n_htop, nsp_i); } } else if (is_list(gval)) { @@ -219,7 +219,7 @@ void gensweep_nstack(Process *p, Eterm **ptr_old_htop, Eterm **ptr_n_htop) } else if (ErtsInArea(ptr, mature, mature_size)) { MOVE_CONS(ptr, val, old_htop, nsp_i); } else if (ErtsInYoungGen(gval, ptr, oh, oh_size)) { - ASSERT(within(ptr, p)); + ASSERT(erts_dbg_within_proc(ptr, p, NULL)); MOVE_CONS(ptr, val, n_htop, nsp_i); } } |