Cleverness of GC Scanning

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 7 05:17:17 PDT 2015


On Friday, 7 August 2015 at 12:05:01 UTC, Per Nordlöw wrote:
> Is the current Phobos GC smart enough to *not* scan 
> GC-allocated arrays when the elements don't contain any 
> indirections (references/pointers).

Yes (mostly). Have a look at the NO_SCAN attribute (and similar) 
in the druntime docs.

  — David


More information about the Digitalmars-d mailing list