[ASan] introduce MONO_NO_SANITIZE_ADDRESS macro and mark sgen pin object scanning...
commit8f324cdfc2c3843053b2d5914252390b67754045
authorBernhard Urban <bernhard.urban@xamarin.com>
Mon, 9 Oct 2017 14:56:11 +0000 (9 16:56 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Tue, 10 Oct 2017 21:25:30 +0000 (10 23:25 +0200)
tree639d7274825396244702aa673800f02e03e8a687
parent8cf8b32972d9ed30a298c96e4be5f72d85606afd
[ASan] introduce MONO_NO_SANITIZE_ADDRESS macro and mark sgen pin object scanning function as such

ASan has very few false-positives, quoting the ASan documentation
(https://github.com/google/sanitizers/wiki/AddressSanitizer#turning-off-instrumentation):

> In some cases a particular function should be ignored (not instrumented)
> by AddressSanitizer:
>
>  [...]
>
> * Ignore a function that does some low-level magic (e.g. walking through
>   the thread's stack bypassing the frame boundaries).
>
>  [...]
mono/sgen/sgen-gc.c
mono/utils/mono-compiler.h