www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13722] New: onFinalizeError should not allocate


          Issue ID: 13722
           Summary: onFinalizeError should not allocate
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com

As our GC is non-reentrant, allocating during a GC run (when invoked by the GC
for finalization) is invalid. Thus, onFinalizeError should use the same pattern
as onOutOfMemoryError to avoid allocating memory.

Nov 12 2014