[lworld] RFR: 8251527: CTW: C2 (Shenandoah) compilation fails with SEGV due to unhandled catchproj == NULL

Roland Westrelin roland at openjdk.java.net
Thu Aug 20 09:31:07 UTC 2020

In PhaseIdealLoop::flatten_array_element_type_check(), when pushing:

(LoadKlass (AddP (CastPP ...

through a Phi, the control of CastPP clone is set to region->in(i) but
the AddP clone control is set to get_ctrl(phi->in(i)) which can be
above region->in(i) while the AddP is below the CastPP. Fix is to use
region->in(i) for all clones.


Commit messages:
 - fix control used when pushing LoadKlass thru phi in PhaseIdealLoop::flatten_array_element_type_check()

Changes: https://git.openjdk.java.net/valhalla/pull/156/files
 Webrev: https://webrevs.openjdk.java.net/valhalla/156/webrev.00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8251527
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.java.net/valhalla/pull/156.diff
  Fetch: git fetch https://git.openjdk.java.net/valhalla pull/156/head:pull/156

PR: https://git.openjdk.java.net/valhalla/pull/156

More information about the valhalla-dev mailing list