precise GC
KnightMare
black80 at bk.ru
Mon Mar 4 10:38:29 UTC 2019
As I understood conservative-GC scans all allocated memory blocks
for false pointers. In other hand precise-GC scans only explicit
memory blocks that contains (objects of types that contains)
pointers/refs or "muddy" types (void, void[]...).
For example, we have some rooted memory block as
auto rooted = new long[1_000_000];
1) conservative-GC will scan it for false pointers every
GC-cycle. is it true?
2) precise-GC will NOT scan it at all. is it true?
More information about the Digitalmars-d-learn
mailing list