JDK-8151818 : C1: LIRGenerator::move_to_phi can't deal with illegal phi
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-14
  • Updated: 2023-08-15
  • Resolved: 2016-03-23
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 9
9 b114Fixed
Related Reports
Relates :  
Description
C1 can't deal with illegal Phi functions which propagate into other Phi functions.
Phi functions get illegal when their inputs have different types.
This was observed when we activated the JVMTI capability can_access_local_variables and restored the old behavior of BlockBegin::try_merge: invalidate the phi functions instead of bailing out.
The function LIRGenerator::move_to_phi crashes in this case.

Proposed fix is to bail out as this case happens extremely rarely. Seems like it was never observed with the new behavior of BlockBegin::try_merge.

Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/4226e949ec95 User: lana Date: 2016-04-13 17:55:49 +0000
13-04-2016

URL: http://hg.openjdk.java.net/jdk9/hs-comp/hotspot/rev/4226e949ec95 User: kvn Date: 2016-03-23 23:42:43 +0000
23-03-2016