GCAllocator goodAllocSize?

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Sat Jan 30 09:41:43 PST 2016


On 1/29/16 9:52 PM, Steven Schveighoffer wrote:
> import std.experimental.allocator.gc_allocator;
>
> void main()
> {
>     //GCAllocator.instance.goodAllocSize(3000); // error
>     writeln(theAllocator.goodAllocSize(3000)); // 3008, should be 4096
> }
>
> This is known info, why is it not available? Is there a reason this
> needs to be inaccurate? I can create a PR if desired.

There's no need, I just put in reasonable conservative defaults. Please 
do follow up - thanks! -- Andrei



More information about the Digitalmars-d mailing list