FYI - mo' work on std.allocator

John Colvin via Digitalmars-d digitalmars-d at puremagic.com
Wed May 7 02:47:43 PDT 2014


On Wednesday, 7 May 2014 at 09:29:15 UTC, Brian Schott wrote:
> On Wednesday, 7 May 2014 at 08:22:51 UTC, John Colvin wrote:
>>> The allocator version uses 1/3 the memory that the older GC 
>>> version used.
>>
>> What is your feeling on the increased code 
>> complexity/fragility, if any?
>
> It was difficult because it's very easy to accidentally have 
> references to GC memory that the GC doesn't know about. When 
> the GC starts freeing "live" memory you get all sorts of 
> contract and invariant violations that should never be possible.

You mean holding references to GC data in a NO_SCAN block?


More information about the Digitalmars-d mailing list