www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11781] New: gc collections run even when disabled

reply d-bugmail puremagic.com writes:
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 puremagic.com
        ReportedBy: bugzilla digitalmars.com


--- Comment #0 from Walter Bright <bugzilla 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: -------
Dec 19 2013
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11781


yebblies <yebblies gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies gmail.com


--- Comment #1 from yebblies <yebblies gmail.com> 2013-12-20 16:19:35 EST ---
I don't think GC.disable should prevent the final collection from happening.

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