Dynamic array as stack and GC.BlkAttr.APPENDABLE

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 14 15:48:46 PST 2014


On Fri, 14 Nov 2014 23:23:17 +0000
IgorStepanov via Digitalmars-d <digitalmars-d at puremagic.com> wrote:

> What does the NO_INTERIOR flag?
it stops GC to acknowledge pointers inside allocated area as anchors.
i.e. if there is no pointer to the head (first address) of allocated
memory, it is assumed to be garbage.

this way we have much less "false pointers", and GC not doing
pointer->block conversions.

for buckets we certainly has "head pointer" and can't have pointers to
bucket elements without "head pointer". so it's safe to tell GC that it
shouldn't do unnecessary work.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20141115/fc9d2309/attachment.sig>


More information about the Digitalmars-d mailing list