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

Johan Sjölen jsjolen at openjdk.org
Wed Oct 8 09:07:37 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

LGTM

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

Marked as reviewed by jsjolen (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27248#pullrequestreview-3313816775


More information about the hotspot-runtime-dev mailing list