mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
7047954: VM crashes with assert(is_Mem()) failed
Cast constant array ptrs to bottom Reviewed-by: never
This commit is contained in:
parent
b3505a88a4
commit
b443bf1f4c
1 changed files with 1 additions and 5 deletions
|
@ -1206,13 +1206,9 @@ const TypePtr *Compile::flatten_alias_type( const TypePtr *tj ) const {
|
||||||
// Make sure the Bottom and NotNull variants alias the same.
|
// Make sure the Bottom and NotNull variants alias the same.
|
||||||
// Also, make sure exact and non-exact variants alias the same.
|
// Also, make sure exact and non-exact variants alias the same.
|
||||||
if( ptr == TypePtr::NotNull || ta->klass_is_exact() ) {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Oop pointers need some flattening
|
// Oop pointers need some flattening
|
||||||
const TypeInstPtr *to = tj->isa_instptr();
|
const TypeInstPtr *to = tj->isa_instptr();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue