RFR  8189800: Add support for AddressSanitizer
Magnus Ihse Bursie
magnus.ihse.bursie at oracle.com
Mon Oct 30 07:50:02 UTC 2017
On 2017-10-30 08:39, Artem Smotrakov wrote:
> cc'ing hotspot-dev at openjdk.java.net as David suggested.
> On 10/27/2017 11:02 PM, Artem Smotrakov wrote:
>> Please review the following patch which adds support for
>> AddressSanitizer is a runtime memory error detector which looks for
>> various memory corruption issues and leaks.
>> Please refer to  for details. AddressSanitizer is available in gcc
>> 4.8+ and clang 3.1+
>> 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/
spec.gmk.in should only have export for variables that needs to be
exported in the environment for executing binaries, that is ASAN_OPTIONS
and LD_LIBRARY_PATH, not ASAN_ENABLED or DEVKIT_LIB_DIR.
I'm also a bit curious about the addition of of DEVKIT_LIB_DIR. Would
you care to elaborate your thinking?
Otherwise it looks good.
>>  https://github.com/google/sanitizers/wiki/AddressSanitizer
More information about the hotspot-dev