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

Saranya Natarajan duke at openjdk.org
Wed Mar 12 10:07:38 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 with code formatting and fixing/removing comments

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

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

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

  Stats: 15 lines in 2 files changed: 0 ins; 5 del; 10 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