Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/hotspot/share/opto/arraycopynode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ Node* ArrayCopyNode::try_clone_instance(PhaseGVN *phase, bool can_reshape, int c
Node* off = phase->MakeConX(field->offset_in_bytes());
Node* next_src = phase->transform(new AddPNode(base_src,base_src,off));
Node* next_dest = phase->transform(new AddPNode(base_dest,base_dest,off));
assert(adr_type->ptr() == phase->C->get_alias_index(phase->type(next_src)->isa_ptr()));
assert(adr_type->ptr() == phase->C->get_alias_index(phase->type(next_dest)->isa_ptr()));
BasicType bt = field->layout_type();

const Type *type;
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/opto/library_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7014,6 +7014,7 @@ Node* LibraryCallKit::load_field_from_object(Node* fromObj, const char* fieldNam
assert(field_klass->is_loaded(), "should be loaded");
const TypePtr* adr_type = C->alias_type(field)->adr_type();
Node *adr = basic_plus_adr(fromObj, fromObj, offset);
assert(adr_type->ptr() == C->get_alias_index(_gvn.type(adr)->isa_ptr()));
BasicType bt = field->layout_type();

// Build the resultant type of the load
Expand Down
2 changes: 2 additions & 0 deletions src/hotspot/share/opto/parse3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ void Parse::do_get_xxx(Node* obj, ciField* field, bool is_field) {
int offset = field->offset_in_bytes();
const TypePtr* adr_type = C->alias_type(field)->adr_type();
Node *adr = basic_plus_adr(obj, obj, offset);
assert(adr_type->ptr() == C->get_alias_index(_gvn.type(adr)->isa_ptr()));

// Build the resultant type of the load
const Type *type;
Expand Down Expand Up @@ -204,6 +205,7 @@ void Parse::do_put_xxx(Node* obj, ciField* field, bool is_field) {
int offset = field->offset_in_bytes();
const TypePtr* adr_type = C->alias_type(field)->adr_type();
Node* adr = basic_plus_adr(obj, obj, offset);
assert(adr_type->ptr() == C->get_alias_index(_gvn.type(adr)->isa_ptr()));
BasicType bt = field->layout_type();
// Value to be stored
Node* val = type2size[bt] == 1 ? pop() : pop_pair();
Expand Down