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

Thomas Stuefe stuefe at openjdk.org
Tue Sep 30 05:09:46 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

Sorry for the delay, this fell through the cracks somehow. Good. Thanks!

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

Marked as reviewed by stuefe (Reviewer).

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


More information about the hotspot-runtime-dev mailing list