RFR: 8374789: C2: refactor GraphKit code that create AddP nodes for raw memory to use helper method [v9]

Guanqiang Han ghan at openjdk.org
Mon Mar 2 15:43:46 UTC 2026


> This PR refactors GraphKit code that creates AddP nodes for raw memory to use a dedicated helper method. This avoids passing top() explicitly at call sites and improves readability.
> 
> Please review this change. Thanks!
> 
> **Test:** GHA

Guanqiang Han 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 16 additional commits since the last revision:

 - Merge remote-tracking branch 'upstream/master' into 8374789
 - Merge remote-tracking branch 'upstream/master' into 8374789
 - Merge two lines into one
 - Adjust code style again
 - Adjust code style
 - Merge remote-tracking branch 'upstream/master' into 8374789
 - adjust code style
 - adjust code style
 - Merge remote-tracking branch 'upstream/master' into 8374789
 - Align properly
 - ... and 6 more: https://git.openjdk.org/jdk/compare/a6483255...3e99bfac

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29666/files
  - new: https://git.openjdk.org/jdk/pull/29666/files/3d07f2fe..3e99bfac

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29666&range=08
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29666&range=07-08

  Stats: 23817 lines in 750 files changed: 13317 ins; 4289 del; 6211 mod
  Patch: https://git.openjdk.org/jdk/pull/29666.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29666/head:pull/29666

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


More information about the hotspot-dev mailing list