From b60fd6d8034e782dd75b867ea3e7a6ae340128ad Mon Sep 17 00:00:00 2001 From: kvn Date: Tue, 28 Jun 2011 15:50:07 -0700 Subject: [PATCH] 7047954: VM crashes with assert(is_Mem()) failed Summary: cast constant array ptrs to bottom Reviewed-by: never --- src/share/vm/opto/compile.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/share/vm/opto/compile.cpp b/src/share/vm/opto/compile.cpp index 7117f7ccc..bfaa98b68 100644 --- a/src/share/vm/opto/compile.cpp +++ b/src/share/vm/opto/compile.cpp @@ -1206,11 +1206,7 @@ const TypePtr *Compile::flatten_alias_type( const TypePtr *tj ) const { // Make sure the Bottom and NotNull variants alias the same. // Also, make sure exact and non-exact variants alias the same. if( ptr == TypePtr::NotNull || ta->klass_is_exact() ) { - if (ta->const_oop()) { - tj = ta = TypeAryPtr::make(TypePtr::Constant,ta->const_oop(),ta->ary(),ta->klass(),false,offset); - } else { - tj = ta = TypeAryPtr::make(TypePtr::BotPTR,ta->ary(),ta->klass(),false,offset); - } + tj = ta = TypeAryPtr::make(TypePtr::BotPTR,ta->ary(),ta->klass(),false,offset); } } -- GitLab