RFR: JDK-8327971: Multiple ASAN errors reported for metaspace [v3]

Thomas Stuefe stuefe at openjdk.org
Wed Mar 13 08:13:29 UTC 2024


On Wed, 13 Mar 2024 02:38:56 GMT, Guoxiong Li <gli at openjdk.org> wrote:

>> Thomas Stuefe has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - remove stray newline
>>  - fixes
>
> src/hotspot/share/sanitizers/address.hpp line 65:
> 
>> 63: #define ASAN_ONLY(code)
>> 64: #define NOT_ASAN(code)  code
>> 65: #define ASAN_POISON_MEMORY_REGION(addr, size) \
> 
> This preprocessing directive is for the macros `ASAN_POISON_MEMORY_REGION` and `ASAN_UNPOISON_MEMORY_REGION`. You can read the comment before `#ifdef ADDRESS_SANITIZER`. So it is good to place your code at another macro `#ifdef ADDRESS_SANITIZER`.

Okay, done.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/18230#discussion_r1522715216


More information about the hotspot-runtime-dev mailing list