AddressSanitizer and the GC

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Jul 21 15:25:28 PDT 2017


On 7/21/2017 2:39 PM, Johan Engelen wrote:
> Quick extra note: the function pointer solution is not friendly to LTO, whereas 
> a weak-linking solution would easily be optimized-out fully with LTO. So that's 
> something to consider too.

This code should be version'd with:

    version (AddressSanitizer)

so that:

1. it will be easy to try different methods

2. all the different places it is used will be easy to find

3. if it does make things too slow, it can be easily 'removed' at the option of 
whoever built druntime


More information about the Digitalmars-d mailing list