DMD memory management

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 17 10:10:40 PDT 2015


On Mon, 15 Jun 2015 18:19:06 -0400, bitwise wrote:

> When memory is never cleaned up, can't that make fork() really slow?
> Doesn't fork copy all memory of the entire process?

on any decent OS fork(2) does CoW (copy-on-writing), so forking is 
lightning fast. also, any decent OS knows about "fork-and-replace" 
pattern, so it throws away old process pages on replacing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150617/32067d28/attachment.sig>


More information about the Digitalmars-d mailing list