Summary: Assert exception should not allocate
Version: D1 & D2
--- Comment #0 from Leandro Lucarella <llu...@gmail.com> 2010-08-05 07:54:45
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: -------