[Issue 13722] New: onFinalizeError should not allocate

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Nov 12 13:44:51 PST 2014


https://issues.dlang.org/show_bug.cgi?id=13722

          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 at puremagic.com
          Reporter: thecybershadow at 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.

--


More information about the Digitalmars-d-bugs mailing list