RFR: 8369393: NMT: poison the malloc header and footer under ASAN build [v2]

Afshin Zafari azafari at openjdk.org
Wed Dec 17 09:02:19 UTC 2025


> Under ASAN builds and when NMT is enabled, the header and footer of MallocHeader are poisoned/unpoisoned at malloc/realloc/free times.
> Checking the integrity of memory blocks is off under ASAN builds.

Afshin Zafari has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains eight additional commits since the last revision:

 - Merge remote-tracking branch 'origin/master' into asan_poison_malloc_hdr_ftr_v2
 - removed extra newlines.
 - fixes.
 - inlining
 - review comments applied.
 - revision
 - jtreg test excluded when ASAN is enabled.
 - 8369393: NMT: poison the malloc header and footer under ASAN build

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/28503/files
  - new: https://git.openjdk.org/jdk/pull/28503/files/2bbb96f1..b452979e

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=28503&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=28503&range=00-01

  Stats: 53387 lines in 933 files changed: 33458 ins; 15670 del; 4259 mod
  Patch: https://git.openjdk.org/jdk/pull/28503.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28503/head:pull/28503

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


More information about the hotspot-runtime-dev mailing list