How do I use the ScopedAllocator?

Yuxuan Shui via Digitalmars-d digitalmars-d at puremagic.com
Mon Jul 25 00:33:25 PDT 2016


On Sunday, 24 July 2016 at 20:48:55 UTC, Nick Treleaven wrote:
> On Friday, 22 July 2016 at 01:54:28 UTC, Yuxuan Shui wrote:
>> 		auto b = alloc.makeArray!A(10, A(1));
>> 		auto c = alloc.makeArray!A(2, A(2));
>
> I noticed (using dpaste) if you edit the 'b' line to only 
> allocate 5 structs, and it won't crash. 6 or more, crash. Maybe 
> a bug?

Valgrind reports double free anyways. I think it's just the 
inaccuracy of the glibc double free detection.


More information about the Digitalmars-d mailing list