Re: Garbage collection of remote references
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <3803-61697980-117-5fd45400@186900249> |
Hi Daniel, Thank you for the explaination, it becomes much less of a problem with a fixed set of node names. Cheers, - lud > Hi Ludovic, > > As far as I know references themselves are stored as regular data on the > heap, and can be garbage collected. However, references (and pids) also > contain > <https://erlang.org/doc/apps/erts/erl_ext_dist.html#new_reference_ext> the > node on which they were created (an atom). So I believe the documentation > wants to warn you that decoding a reference may also create an atom in your > atom table (plus also an entry in the node name to "first number in a pid" > mapping table, which probably has an official name). which will not be > garbage collected. The reference itself will be. > > Hope it helps, > Daniel >