Red-Black tree storing color without additional memory requirements

bearophile bearophileHUGS at lycos.com
Wed Nov 20 06:50:04 PST 2013


safety0ff:

> Since the GC supports interior pointers, I think you can 
> justify using the least significant bits as long as the size 
> and alignment of the pointed object guarantee that the pointer 
> + tag will always lie inside the memory block.

From:
http://dlang.org/garbage.html

> Do not take advantage of alignment of pointers to store bit 
> flags in the low order bits:

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list