Skip to content

Commit

Permalink
8343206: Final graph reshaping should not compress abstract or interf…
Browse files Browse the repository at this point in the history
…ace class pointers

Reviewed-by: coleenp, eosterlund, kvn
  • Loading branch information
TobiHartmann committed Nov 4, 2024
1 parent c125178 commit 2432c4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/hotspot/share/opto/compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(), "");
Expand Down

0 comments on commit 2432c4f

Please sign in to comment.