Re: When does GC run?

2018-10-16 Thread Stanislav Blinov via Digitalmars-d-learn
On Tuesday, 16 October 2018 at 09:38:44 UTC, John Burton wrote: The information I have found indicates that it runs to free memory when the system runs out of memory to allocate. No, that is incorrect. By default, here's what's happening: 1) At startup (or first 'new' or GC.malloc) the GC all

Re: When does GC run?

2018-10-16 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 16 October 2018 at 09:38:44 UTC, John Burton wrote: Is there any documentation or information about the specifics of the garbage collector? The information I have found indicates that it runs to free memory when the system runs out of memory to allocate. But will this try to use a

Re: When does GC run?

2018-10-16 Thread rikki cattermole via Digitalmars-d-learn
On 16/10/2018 10:38 PM, John Burton wrote: Is there any documentation or information about the specifics of the garbage collector? The information I have found indicates that it runs to free memory when the system runs out of memory to allocate. But will this try to use all the system memory

When does GC run?

2018-10-16 Thread John Burton via Digitalmars-d-learn
Is there any documentation or information about the specifics of the garbage collector? The information I have found indicates that it runs to free memory when the system runs out of memory to allocate. But will this try to use all the system memory or some other amount before trying to garba