Skip to content

Commit

Permalink
Merge branch 'lukas/erts/remove-faulty-dirty-free-proc-assert' into m…
Browse files Browse the repository at this point in the history
…aint

* lukas/erts/remove-faulty-dirty-free-proc-assert:
  erts: Remove faulty assert checking for DELAYED_DEL_PROC flag
  • Loading branch information
garazdawi committed Feb 20, 2025
2 parents 486db63 + 1e0dfe2 commit 1679745
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions erts/emulator/beam/erl_process.c
Original file line number Diff line number Diff line change
Expand Up @@ -9502,9 +9502,6 @@ Process *erts_schedule(ErtsSchedulerData *esdp, Process *p, int calls)
erts_aint32_t state = 0; /* Suppress warning... */
int is_normal_sched;
ErtsSchedType sched_type;
#ifdef DEBUG
int aborted_execution = 0;
#endif

ERTS_MSACC_DECLARE_CACHE();

Expand Down Expand Up @@ -9662,11 +9659,7 @@ Process *erts_schedule(ErtsSchedulerData *esdp, Process *p, int calls)
ERTS_MSACC_SET_STATE_CACHED(ERTS_MSACC_STATE_OTHER);

if (state & ERTS_PSFLG_FREE) {
if (!is_normal_sched) {
ASSERT((p->flags & F_DELAYED_DEL_PROC)
|| aborted_execution);
}
else {
if (is_normal_sched) {
ASSERT(esdp->free_process == p);
esdp->free_process = NULL;
}
Expand All @@ -9691,10 +9684,6 @@ Process *erts_schedule(ErtsSchedulerData *esdp, Process *p, int calls)
ErtsMigrationPaths *mps;
ErtsMigrationPath *mp;

#ifdef DEBUG
aborted_execution = 0;
#endif

if (is_normal_sched) {

if (esdp->check_time_reds >= ERTS_CHECK_TIME_REDS)
Expand Down Expand Up @@ -10130,9 +10119,6 @@ Process *erts_schedule(ErtsSchedulerData *esdp, Process *p, int calls)
erts_proc_unlock(p, ERTS_PROC_LOCK_STATUS);
if (ERTS_IS_P_TRACED(p))
trace_schedule_in(p, state);
#ifdef DEBUG
aborted_execution = !0;
#endif
goto sched_out_proc;
}
break;
Expand Down

0 comments on commit 1679745

Please sign in to comment.