mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-20 11:50:25 +00:00
8343206: Final graph reshaping should not compress abstract or interface class pointers
Reviewed-by: coleenp, eosterlund, kvn
This commit is contained in:
parent
c125178065
commit
2432c4f862
@ -3782,6 +3782,14 @@ void Compile::final_graph_reshaping_main_switch(Node* n, Final_Reshape_Counts& f
|
||||
}
|
||||
break;
|
||||
}
|
||||
#ifdef ASSERT
|
||||
case Op_ConNKlass: {
|
||||
const TypePtr* tp = n->as_Type()->type()->make_ptr();
|
||||
ciKlass* klass = tp->is_klassptr()->exact_klass();
|
||||
assert(klass->is_in_encoding_range(), "klass cannot be compressed");
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
default:
|
||||
assert(!n->is_Call(), "");
|
||||
assert(!n->is_Mem(), "");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user