RFR: 8365385: [asan] os::pretouch_memory() is not compatible with ASAN
Afshin Zafari
azafari at openjdk.org
Mon Sep 29 09:11:52 UTC 2025
On Fri, 12 Sep 2025 07:54:05 GMT, Afshin Zafari <azafari at openjdk.org> wrote:
> When ASAN is enabled, memories allocated from ChunkManager are poisoned/unpoisoned. These un-/poisoning are done in ctor/dtor of VirtualSpaceNode and whenever chunks come/leave the ChunkManager list. Since chunks can be merged or split the poisoning should also follow the new memory segments correspondingly. To have a more precise control over where/when do the un-/poisoning, the ASAN poisoning/unpoisoning memory regions is moved after os::uncommit/commit operations.
>
> Tested on tiers1-5
@tstuefe, would you please give your review/feedback on this PR. TIA.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27248#issuecomment-3345842636
More information about the hotspot-runtime-dev
mailing list