RFR [10] 8189800: Add support for AddressSanitizer

David Holmes david.holmes at oracle.com
Tue Oct 31 10:37:38 UTC 2017


Hi Artem,

On 28/10/2017 6:02 AM, Artem Smotrakov wrote:
> Hello,
> 
> Please review the following patch which adds support for AddressSanitizer.
> 
> AddressSanitizer is a runtime memory error detector which looks for 
> various memory corruption issues and leaks.
> 
> Please refer to [1] for details. AddressSanitizer is available in gcc 
> 4.8+ and clang 3.1+

Should we be checking the version before adding the flags?

Thanks,
David

> The patch below introduces --enable-asan parameter for the configure 
> script which enables AddressSanitizer.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8189800
> Webrev: http://cr.openjdk.java.net/~asmotrak/8189800/webrev.00/
> 
> [1] https://github.com/google/sanitizers/wiki/AddressSanitizer
> 
> Artem



More information about the build-dev mailing list