[Issue 11781] New: gc collections run even when disabled

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 19 13:40:30 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11781

           Summary: gc collections run even when disabled
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: bugzilla at digitalmars.com


--- Comment #0 from Walter Bright <bugzilla at digitalmars.com> 2013-12-19 13:40:29 PST ---
The following program:
---------------------------
import std.stdio;
import core.memory;

void main()
{
    GC.disable();
}
-----------------------
when run prints:

disable()
enable()
disable()
fullcollect()

where gc/gc.d has printf's put in disable(), enable(), and fullcollect().

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list