http://d.puremagic.com/issues/show_bug.cgi?id=4587

           Summary: Assert exception should not allocate
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: druntime
        AssignedTo: s...@invisibleduck.org
        ReportedBy: llu...@gmail.com


--- Comment #0 from Leandro Lucarella <llu...@gmail.com> 2010-08-05 07:54:45 
PDT ---
If an assert error allocates memory, the GC allocation code can't use assert,
because it enters in an infinite recursion if the assertion fail.

Since OutOfMemory don't allocate, I think a similar trick can be done for
assert. Is not too bad the current situation, because it only affects the GC,
but it would be nice to be able to use assert inside the GC without having to
be very careful that the assert is not used in the code path for allocation
(which includes the collection itself).

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

Reply via email to