Garbage collection of binaries

Joachim Durchholz joachim.durchholz@REDACTED
Fri Oct 17 11:17:49 CEST 2003


Jesper Wilhelmsson wrote:
> Binaries are referenced counted and are removed when their conter reach
> zero.

This gives me another approach: when you're done with a binary, zero out 
all references to it. The binary will go away immediately.

(This might be impossible if the reference is created as an intermediate 
result. It might also interfere with tail recursion. Using reference 
counts in a functional language doesn't strike me as a particularly good 
solution in this light...)

Regards,
Jo




More information about the erlang-questions mailing list