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

Afshin Zafari azafari at openjdk.org
Wed Oct 8 09:52:29 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

This pull request has now been integrated.

Changeset: 6a4c2676
Author:    Afshin Zafari <azafari at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6a4c2676a6378f573bd58d1bc32b57765d756291
Stats:     22 lines in 2 files changed: 4 ins; 18 del; 0 mod

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

Reviewed-by: stuefe, jsjolen

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

PR: https://git.openjdk.org/jdk/pull/27248


More information about the hotspot-runtime-dev mailing list