Phobos addition formal review: std.experimental.allocator

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sun Jun 14 07:30:09 PDT 2015


On 6/14/15 4:00 AM, Brian Schott wrote:
> On Sunday, 14 June 2015 at 00:24:51 UTC, Andrei Alexandrescu wrote:
>> So we have:
>>
>> * 1 request to change names;
>> * 3 requests to wank around the directory structure;
>> * 0 of everything else.
>>
>> Sigh.
>>
>>
>> Andrei
>
> How about this:
>
> AllocatorList.allocate() calls AllocatorList.owns(), but only if you
> don't compile with -release. Check the assert statement.
> AllocatorList.owns() is non-const, so the for loops of these two
> functions start rearranging the root pointers and end up in an infinite
> loop in debug builds.

Interesting. Do you have a repro for this? Thanks! -- Andrei


More information about the Digitalmars-d mailing list