aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2015-11-10 12:06:30 +0100
committerRickard Green <[email protected]>2015-11-12 15:25:48 +0100
commitb56f5a163555181dceb79cbfd0d69d3cb5015e9c (patch)
treefa31a386b6bbcf0039fea9938cc2e0422760e0a8 /erts
parent3ac08f9b668613a4292436979eacc61863c2ab94 (diff)
downloadotp-b56f5a163555181dceb79cbfd0d69d3cb5015e9c.tar.gz
otp-b56f5a163555181dceb79cbfd0d69d3cb5015e9c.tar.bz2
otp-b56f5a163555181dceb79cbfd0d69d3cb5015e9c.zip
Use the same conditions when triggering GC after BIF
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/beam/beam_emu.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c
index 1dd56ff989..9521997987 100644
--- a/erts/emulator/beam/beam_emu.c
+++ b/erts/emulator/beam/beam_emu.c
@@ -3533,14 +3533,7 @@ do { \
apply_bif_or_nif_epilogue:
ERTS_SMP_REQ_PROC_MAIN_LOCK(c_p);
ERTS_HOLE_CHECK(c_p);
- /*
- * We want to test with ERTS_IS_GC_DESIRED(c_p) in order
- * to trigger gc due to binaries based on same conditions
- * regardless of how the bif is called. This change will
- * however be introduced in a separate commit in order to
- * easier identify why the characteristics changed.
- */
- if (c_p->stop - c_p->htop < c_p->mbuf_sz) {
+ if (ERTS_IS_GC_DESIRED(c_p)) {
nif_bif_result = erts_gc_after_bif_call_lhf(c_p, live_hf_end,
nif_bif_result,
reg, bif_nif_arity);