RFR: 8346866: [ASAN] memoryReserver.cpp reported applying non-zero offset to non-null pointer produced null pointer [v7]
SendaoYan
syan at openjdk.org
Tue Jan 7 12:51:37 UTC 2025
On Tue, 7 Jan 2025 12:23:44 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> The last couple of changes made the code much more non-obvious to me.
Sorry for the frequent commit..
The main purpose of this PR is make UndefinedBehaviorSanitizer slient, so I convert `attach_point` to `size_t` and then revert it to `char*` again in the for-loop condition, this convert avoid UndefinedBehaviorSanitizer report 'produced null pointer', if we should use the explicitness of the pointer-based iteration path but avoid 2rd loop exit.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22897#issuecomment-2575219859
More information about the hotspot-runtime-dev
mailing list