Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8252110: [lworld] C2 compilation crashes with SIGSEGV in AddPNode::Value #160

wants to merge 1 commit into from
Changes from all commits
File filter
Filter by extension
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -2955,11 +2955,22 @@ Node* GraphKit::gen_subtype_check(Node* obj_or_subklass, Node* superklass) {

// Profile-driven exact type check:
Node* GraphKit::type_check_receiver(Node* receiver, ciKlass* klass,
float prob,
Node* *casted_receiver) {
float prob, Node* *casted_receiver) {
Node* fail = top();
const Type* rec_t = _gvn.type(receiver);
if (false && rec_t->isa_inlinetype()) {
if (klass->equals(rec_t->inline_klass())) {
(*casted_receiver) = receiver; // Always passes
} else {
(*casted_receiver) = top(); // Always fails
fail = control();
return fail;
const TypeKlassPtr* tklass = TypeKlassPtr::make(klass);
Node* recv_klass = load_object_klass(receiver);
Node* fail = type_check(recv_klass, tklass, prob);
fail = type_check(recv_klass, tklass, prob);
const TypeOopPtr* recv_xtype = tklass->as_instance_type();
assert(recv_xtype->klass_is_exact(), "");