After telling this every week at minimum one person... Please say it in the doc:
The GC enable/disable are not implemented.
Comment #1 by sean — 2006-08-09T14:00:54Z
[email protected] wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=280
>
> Summary: Doc of GC
> Product: D
> Version: 0.163
> Platform: PC
> OS/Version: All
> Status: NEW
> Severity: normal
> Priority: P2
> Component: Phobos
> AssignedTo: [email protected]
> ReportedBy: [email protected]
>
>
> After telling this every week at minimum one person... Please say it in the
> doc:
>
> The GC enable/disable are not implemented.
I think it would be trivial to enable this feature. Try adding these
lines to the top of internal/gc/gcx.d - fullcollectshell():
if (gcx.disabled > 0)
return 0;
This should force the GC to allocate a new pool if all existing pools
are full instead of first attempting a collect.
Comment #2 by sean — 2006-08-09T14:10:13Z
Sean Kelly wrote:
>
> I think it would be trivial to enable this feature. Try adding these
> lines to the top of internal/gc/gcx.d - fullcollectshell():
>
> if (gcx.disabled > 0)
> return 0;
Correction, the above should be:
if (disabled > 0)
return 0;
I forgot this code is in the Gcx struct.
Sean