Skip to content

Commit

Permalink
Revert "Merge branch 'rickard/sig-cleanup/OTP-18752' into maint-25"
Browse files Browse the repository at this point in the history
This reverts commit 9ed5c42, reversing
changes made to 96cd1d8.
  • Loading branch information
jaydoane committed Oct 27, 2023
1 parent d3c9eeb commit 2fe35d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions erts/emulator/beam/erl_proc_sig_queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -6489,7 +6489,6 @@ int
erts_proc_sig_handle_exit(Process *c_p, Sint *redsp,
ErtsProcExitContext *pe_ctxt_p)
{
int yield = 0;
int cnt;
Sint limit;
ErtsMessage *sig, ***next_nm_sig;
Expand Down Expand Up @@ -6634,11 +6633,12 @@ erts_proc_sig_handle_exit(Process *c_p, Sint *redsp,
handle_sync_suspend(c_p, sig);
break;

case ERTS_SIG_Q_OP_RPC:
yield = 0;
cnt += handle_rpc(c_p, (ErtsProcSigRPC *) sig,
cnt, limit, &yield);
case ERTS_SIG_Q_OP_RPC: {
int yield = 0;
handle_rpc(c_p, (ErtsProcSigRPC *) sig,
cnt, limit, &yield);
break;
}

case ERTS_SIG_Q_OP_DIST_SPAWN_REPLY: {
cnt += handle_dist_spawn_reply_exiting(c_p, sig, pe_ctxt_p);
Expand Down Expand Up @@ -6684,7 +6684,7 @@ erts_proc_sig_handle_exit(Process *c_p, Sint *redsp,
break;
}

} while (cnt <= limit && !yield && *next_nm_sig);
} while (cnt >= limit && *next_nm_sig);

*redsp += cnt / ERTS_SIG_REDS_CNT_FACTOR;

Expand Down

0 comments on commit 2fe35d6

Please sign in to comment.