Skip to content

Commit 2432c4f

Browse files
committed
8343206: Final graph reshaping should not compress abstract or interface class pointers
Reviewed-by: coleenp, eosterlund, kvn
1 parent c125178 commit 2432c4f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/hotspot/share/opto/compile.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3782,6 +3782,14 @@ void Compile::final_graph_reshaping_main_switch(Node* n, Final_Reshape_Counts& f
37823782
}
37833783
break;
37843784
}
3785+
#ifdef ASSERT
3786+
case Op_ConNKlass: {
3787+
const TypePtr* tp = n->as_Type()->type()->make_ptr();
3788+
ciKlass* klass = tp->is_klassptr()->exact_klass();
3789+
assert(klass->is_in_encoding_range(), "klass cannot be compressed");
3790+
break;
3791+
}
3792+
#endif
37853793
default:
37863794
assert(!n->is_Call(), "");
37873795
assert(!n->is_Mem(), "");

0 commit comments

Comments
 (0)