6812217: Base memory of MergeMem node violates assert during killing expanded AllocateArray node
authorkvn
Thu, 24 Feb 2011 10:28:20 -0800
changeset 8491 058b35a9d008
parent 8490 d58c5dbf8c7b
child 8493 c865bf427f0e
6812217: Base memory of MergeMem node violates assert during killing expanded AllocateArray node Summary: The assert in MergeMemNode::memory_at() misses the case when address is TOP. Reviewed-by: never
hotspot/src/share/vm/opto/memnode.cpp
--- a/hotspot/src/share/vm/opto/memnode.cpp	Wed Feb 23 19:09:16 2011 -0800
+++ b/hotspot/src/share/vm/opto/memnode.cpp	Thu Feb 24 10:28:20 2011 -0800
@@ -4077,6 +4077,7 @@
     n = base_memory();
     assert(Node::in_dump()
            || n == NULL || n->bottom_type() == Type::TOP
+           || n->adr_type() == NULL // address is TOP
            || n->adr_type() == TypePtr::BOTTOM
            || n->adr_type() == TypeRawPtr::BOTTOM
            || Compile::current()->AliasLevel() == 0,