JDK-8136547 : CountedLoopEndNode::phi() should only return PhiNodes
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9,10
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2015-09-15
  • Updated: 2017-08-29
  • Resolved: 2017-08-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
Related Reports
Duplicate :  
Relates :  
CountedLoopEndNode::phi() currently does not check if the node is a PhiNode and may therefore return other nodes (see JDK-8134739). We should change the implementation to always either return a PhiNode or NULL (use tmp->in(1)->as_Phi()) and adapt the call sites accordingly. For example, PhiNode::Value() currently expects phi() to return "something" even if the loop does not contain a PhiNode.
This was fixed by JDK-8148786.

Yes, this should be an enhancement. Fixed.

Shouldn't we treat this issue as enhancement?