[Issue 10323] getAMDcacheinfo needlessly allocates

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 10 13:32:48 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10323



--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> 2013-06-10 13:32:46 PDT ---
(In reply to comment #3)
> thinking some more about that data segment thing, maybe that won't work either
> because ~= would try to find gc info, to check capacity, that doesn't exist
> there. But I'm sure that can be worked around, the literal could perhaps write
> out a dummy gc info block before the array informing append that it has zero
> extra capacity.

The runtime can detect when it's not dealing with non-GC memory (think about
appending to stack data).

Appending would simply allocate a new GC block.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list