[Issue 4587] New: Assert exception should not allocate
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 5 07:54:48 PDT 2010
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: sean at invisibleduck.org
ReportedBy: llucax at gmail.com
--- Comment #0 from Leandro Lucarella <llucax at 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: -------
More information about the Digitalmars-d-bugs
mailing list