Safely extend the size of a malloced memory block after realloc

via Digitalmars-d digitalmars-d at puremagic.com
Tue Aug 18 03:27:11 PDT 2015


On Monday, 17 August 2015 at 19:38:21 UTC, Steven Schveighoffer 
wrote:
>> // if the GC kicks in here we're f*****
>> GC.addRange(mem, 512);
>
> Can't you GC.disable around this whole thing?

GC.collect can still be called from another thread.


More information about the Digitalmars-d mailing list