shared array?
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 12 15:44:09 PDT 2015
On Saturday, 12 September 2015 at 13:42:44 UTC, Prudence wrote:
> Using it at all is a problem because one doesn't know when and
> where.
It is called when the collect function is called and where it was
called from.
D's garbage collector isn't magic, it is just a function that
frees memory when the pool runs low.
> It's like playing Russian roulette. It doesn't matter if only
> 1/6 times will kill you. It's totally different than 0/6.
The big difference is the garbage collector doesn't actually kill
you.
Memory corruption, use-after-free, and double-free bugs on the
other hand often do terminate your process.
More information about the Digitalmars-d-learn
mailing list