JDK-8349930 : C2: verify memory liveness invariants after scheduling
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2025-02-12
  • Updated: 2025-04-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.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Violation of memory liveness invariants can lead to subtle miscompilation issues such as JDK-8333393, JDK-8255763, and JDK-8288975. This RFE proposes adding debug-only verification code after scheduling (GCM and LCM) that computes liveness information for the memory subgraph and checks that certain invariants hold.

Examples of candidate invariants to be explored are that "all-memory" (<Bot> in the notation given in memnode.cpp) definitions do not interfere, or that a MergeMem definition using a certain memory state does not interfere with that particular memory state later on.