JDK-8036667 : "assert(adr->is_AddP() && adr->in(AddPNode::Offset)->is_Con()) failed: offset is a constant" with FoldStableValues on
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-03-05
  • Updated: 2017-07-26
  • Resolved: 2014-03-06
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 8 JDK 9
8u20Fixed 9 b06Fixed
Description
I get this with a lot of different jtreg tests. One example is:
java/util/stream/test/org/openjdk/tests/java/util/stream/TeeOpTest.java
on solaris x64 with -Xcomp
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/space/rw140007/jdk9-repo/hotspot/src/share/vm/opto/memnode.cpp:1659), pid=10593, tid=16
#  assert(adr->is_AddP() && adr->in(AddPNode::Offset)->is_Con()) failed: offset is a constant
#

I'm using an old JDK8 build (b119) with latest hotspot from hotspot-comp.