aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_gc.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2010-09-30 08:59:05 +0200
committerSverker Eriksson <[email protected]>2011-10-26 18:19:20 +0200
commit81a7ccf6dbb09015a1a35f3b59f8ec549a4d0317 (patch)
tree19336bc11ff9cc1aa11efabf06d8badbd49a3f63 /erts/emulator/beam/erl_gc.c
parent99e864e502217e9e8929d8dc17ff8d08eca8dff5 (diff)
downloadotp-81a7ccf6dbb09015a1a35f3b59f8ec549a4d0317.tar.gz
otp-81a7ccf6dbb09015a1a35f3b59f8ec549a4d0317.tar.bz2
otp-81a7ccf6dbb09015a1a35f3b59f8ec549a4d0317.zip
Store the trap arguments in the X register array
Store arguments for a trap in the X register array to allow traps to have any number of arguments.
Diffstat (limited to 'erts/emulator/beam/erl_gc.c')
-rw-r--r--erts/emulator/beam/erl_gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_gc.c b/erts/emulator/beam/erl_gc.c
index e3445bcdc5..17cc6e0a2c 100644
--- a/erts/emulator/beam/erl_gc.c
+++ b/erts/emulator/beam/erl_gc.c
@@ -315,7 +315,7 @@ erts_gc_after_bif_call(Process* p, Eterm result, Eterm* regs, Uint arity)
if (is_non_value(result)) {
if (p->freason == TRAP) {
- cost = erts_garbage_collect(p, 0, p->def_arg_reg, p->arity);
+ cost = erts_garbage_collect(p, 0, regs, p->arity);
} else {
cost = erts_garbage_collect(p, 0, regs, arity);
}