diff options
author | Sverker Eriksson <[email protected]> | 2019-04-24 16:02:55 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2019-04-24 20:56:04 +0200 |
commit | e45db930e7fb9980dfd774c64401cf0dda965c58 (patch) | |
tree | fcb004c8729bc9dbbcbbab5506cef8ee4ace40ea | |
parent | 2c8e6848d3b1d13529e83d8cf76e0a2a458fea52 (diff) | |
download | otp-e45db930e7fb9980dfd774c64401cf0dda965c58.tar.gz otp-e45db930e7fb9980dfd774c64401cf0dda965c58.tar.bz2 otp-e45db930e7fb9980dfd774c64401cf0dda965c58.zip |
erts: Fix another bug in process_info(reductions)
to disregard consumed virtual reductions
which are not aggregated into p->reds
and if included may cause reduction count go backwards.
-rw-r--r-- | erts/emulator/beam/beam_emu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_emu.c b/erts/emulator/beam/beam_emu.c index ce986fdd7a..370f39431a 100644 --- a/erts/emulator/beam/beam_emu.c +++ b/erts/emulator/beam/beam_emu.c @@ -3247,7 +3247,7 @@ erts_current_reductions(Process *c_p, Process *p) } else { reds_left = c_p->fcalls; } - return REDS_IN(c_p) - reds_left; + return REDS_IN(c_p) - reds_left - erts_proc_sched_data(p)->virtual_reds; } int |