RFR: JDK-8327971: Multiple ASAN errors reported for metaspace [v3]
Guoxiong Li
gli at openjdk.org
Wed Mar 13 10:40:13 UTC 2024
On Wed, 13 Mar 2024 10:08:20 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
>> src/hotspot/share/memory/metaspace/virtualSpaceNode.cpp line 438:
>>
>>> 436: // Down here, from ASAN's view, this memory may be poisoned, since we only unpoison
>>> 437: // way up at the ChunkManager level.
>>> 438: #if !INCLUDE_ASAN
>>
>>> But from the newest code, which uses only INCLUDE_ASAN instead of ASAN_ONLY and NOT_ASAN, I think you can use the exiting ADDRESS_SANITIZER instead of adding INCLUDE_ASAN
>>
>> For example, you can use `#ifndef ADDRESS_SANITIZER` directly here and don't need a new macro `INCLUDE_ASAN`.
>
> INCLUDE_xxx, as a numerical, is our normal notation for these things.
Got it. Thanks for your kindly explanation.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18230#discussion_r1522973017
More information about the hotspot-runtime-dev
mailing list