RFR: 8350485: C2: factor out common code in Node::grow() and Node::out_grow() [v2]

Saranya Natarajan duke at openjdk.org
Mon Mar 10 14:06:36 UTC 2025


> Node:grow() and Node::out_grow() are copy-pasted from each other and their core logic could be factored out into a third function or at least cleaned up. Hence,the fix includes a function Node::array_resize() that implements the core logic of Node::grow() and Node::out_grow(). 
> 
>  Link to Github action which had no failures :  https://github.com/sarannat/jdk/actions/runs/13677508359

Saranya Natarajan has updated the pull request incrementally with one additional commit since the last revision:

  8350485: Addressing review comments on code style

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23928/files
  - new: https://git.openjdk.org/jdk/pull/23928/files/017fc161..f308762b

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

  Stats: 12 lines in 2 files changed: 0 ins; 1 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/23928.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23928/head:pull/23928

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


More information about the hotspot-compiler-dev mailing list