JDK-6812217 : Base memory of MergeMem node violates assert during killing expanded AllocateArray node
  • Type: Bug
  • Status: Closed
  • Resolution: Fixed
  • Component: hotspot
  • Sub-Component: compiler
  • Priority: P3
  • Affected Version: hs14
  • OS: generic
  • CPU: generic
  • Submit Date: 2009-03-03
  • Updated Date: 2011-04-24
  • Resolved Date: 2011-04-24
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 Availabitlity Release.

To download the current JDK release, click here.
JDK 7 Other
7Fixed hs21Fixed
Related Reports
Relates :  
Description
Server jvm could fail fail with
> # A fatal error has been detected by the Java Runtime Environment:
> #
> #  Internal Error (/export/users2/lab_ipfjbld/nightly/dev/r1767_08-12-22_0800/sources/hotspot/src/share/vm/opto/memnode.cpp:3793), pid=5400, tid=2305843017755292288
> #  Error: assert(Node::in_dump() || n == __null || n->bottom_type() == Type::TOP || n->adr_type() == TypePtr::BOTTOM || n->adr_type() == TypeRawPtr::BOTTOM || Compile::current()->AliasLevel() == 0,"must be a wide memory")


The reason of failure is that the assert happens because during iGVN optimization after macro expanding the base
memory of MergeMem node does not satisfy the assertion. This MergeMem node is located between AllocateArray and Initialize nodes.

Comments
PUBLIC COMMENTS The assert in MergeMemNode::memory_at() misses the case when address is TOP.
2011-02-24

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/5a41a201d08c
2011-02-24