JDK-8226316 : [AOT] don't fold identity checks for dynamic constants
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2019-06-18
  • Updated: 2021-12-16
  • Resolved: 2021-12-16
Related Reports
Relates :  
Description
It appears that JAOTC will attempt to fold == and != comparisons on MethodHandle/MethodType LDC constants and invokedynamic appendix constants.  However, it shouldn't assume that any identity relationship at compile time will still hold at runtime.