dplyukhin / UIGC

A garbage collector for Akka actors!
Other
4 stars 2 forks source link

Stopping parents causes children to stop #15

Closed dplyukhin closed 2 years ago

dplyukhin commented 4 years ago

Our algorithm assumes that actors do not terminate until they are explicitly stopped, but this is not true for Akka. From the documentation:

It is important to note that actors do not stop automatically when no longer referenced, every Actor that is created must also explicitly be destroyed. The only simplification is that stopping a parent Actor will also recursively stop all the child Actors that this parent has created. All actors are also stopped automatically when the ActorSystem is shut down.

We need to disable this functionality. If that's not possible, then we should at least add a check that prevents an actor from self-terminating until all of its children have terminated.

dplyukhin commented 4 years ago

Might be related to #4