RFR: 8365385: [asan] os::pretouch_memory() is not compatible with ASAN

Afshin Zafari azafari at openjdk.org
Wed Oct 8 09:52:27 UTC 2025


On Tue, 30 Sep 2025 05:07:12 GMT, Thomas Stuefe <stuefe 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
>
> Sorry for the delay, this fell through the cracks somehow. Good. Thanks!

Thank you @tstuefe and @jdksjolen for your reviews.

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

PR Comment: https://git.openjdk.org/jdk/pull/27248#issuecomment-3380719951


More information about the hotspot-runtime-dev mailing list