diff options
author | Björn Gustavsson <[email protected]> | 2010-09-30 08:59:05 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-10-26 18:19:20 +0200 |
commit | 81a7ccf6dbb09015a1a35f3b59f8ec549a4d0317 (patch) | |
tree | 19336bc11ff9cc1aa11efabf06d8badbd49a3f63 /erts/emulator/beam/erl_gc.c | |
parent | 99e864e502217e9e8929d8dc17ff8d08eca8dff5 (diff) | |
download | otp-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.c | 2 |
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); } |