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: [email protected]
Reporter: [email protected]
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.
--
