aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRickard Green <[email protected]>2011-12-20 12:49:52 +0100
committerRickard Green <[email protected]>2011-12-20 12:49:52 +0100
commitd97c8d53575635669bf0bcd0b80c92dba3e558d4 (patch)
tree2438678c768dd1e078d0ba03a6e729745722725d
parentc91492b67749c17116d1c0c8e7030f97b09c097c (diff)
downloadotp-d97c8d53575635669bf0bcd0b80c92dba3e558d4.tar.gz
otp-d97c8d53575635669bf0bcd0b80c92dba3e558d4.tar.bz2
otp-d97c8d53575635669bf0bcd0b80c92dba3e558d4.zip
Remove bad assert
It is possible also in non-SMP case: 1. The process receives an exit signal and is set in status exiting and inserted into the run queue. 2. The distribution port exits before the process has been selected for execution and cannot remove the link half on the process since it is in status exiting. 3. Process is selected for execution and when removing this link half the distribution channel is gone!
-rw-r--r--erts/emulator/beam/erl_process.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c
index b8c6b64fc0..5469a59d8c 100644
--- a/erts/emulator/beam/erl_process.c
+++ b/erts/emulator/beam/erl_process.c
@@ -7980,15 +7980,6 @@ static void doit_exit_link(ErtsLink *lnk, void *vpcontext)
if (rlnk)
erts_destroy_link(rlnk);
erts_deref_dist_entry(dep);
- } else {
-#ifndef ERTS_SMP
- /* XXX Is this possible? Shouldn't this link
- previously have been removed if the node
- had previously been disconnected. */
- ASSERT(0);
-#endif
- /* This is possible when smp support has been enabled,
- and dist port and process exits simultaneously. */
}
break;