3 ms·
I wonder if the remaining processes can keep running while one is collecting? It looks like when collection of the old generation is running, then all processes
by bjourne 11y ago
I wonder if the remaining processes can keep running while one is collecting? It looks like when collection of the old generation is running, then all processes in the VM must first be stopped. That is a drag for concurrency.
- cpeterso 11y agoEach Erlang process has its own heap that can be GC'd in parallel, plus a shared global heap.
- toast0 11y agoJust for future people who see this: the shared binary heap is not garbage collected, it's reference counted. When the process heap is GC'ed any references to the binary heap that didn't survive GC will be removed and refcounts updated. (Also when a process exits, all the binary heap references will be updated)