JDK-8223533 : JAOTC invokedynamic support broken after 8220623
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 13
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2019-05-07
  • Updated: 2021-12-16
  • Resolved: 2021-12-16
Related Reports
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8224931 :  
JDK-8244275 :  
Description
% jaotc java.util.concurrent.atomic.DoubleAdder

[...]
Error: Failed compilation: java.util.concurrent.atomic.DoubleAdder.sumThenReset()D: org.graalvm.compiler.graph.GraalGraphError: java.lang.ClassCastException: class jdk.vm.ci.hotspot.HotSpotConstantPoolObject cannot be cast to class jdk.vm.ci.hotspot.HotSpotObjectConstant (jdk.vm.ci.hotspot.HotSpotConstantPoolObject and jdk.vm.ci.hotspot.HotSpotObjectConstant are in module jdk.internal.vm.ci of loader 'bootstrap')

Comments
The only indication of problem are AOT compilation failures I observed and posted in Slack. I don't think it is urgent.
08-05-2019

Yes, this is the problem discussed in Slack, and I already started working on it. I don't think Igor's suggestion is enough. Is this currently causing any CI or nightly failures? If so, we can look into doing a quick fix that disables invokedynamic support.
08-05-2019

[~dlong] Will you look on this or you want me to look? You know more about invokedynamic support. Also, please, add command line to reproduce the failure. Should we use this bug to fix problem discussed in Slack channel and use Igor's suggestions?
08-05-2019