comparison src/share/vm/c1/c1_GraphBuilder.cpp @ 12165:59982ff9e0ec

8022283: Assertion failed: assert(is_loaded() && field->holder()->is_loaded() && klass()->is_subclass_of (field->holder())) failed: invalid access Reviewed-by: roland, twisti
author rbackman
date Tue, 20 Aug 2013 09:37:01 +0200
parents f98f5d48f511
children 1b64d46620a3
comparison
equal deleted inserted replaced
12161:e1fbb86b47e4 12165:59982ff9e0ec
1581 Instruction* constant = NULL; 1581 Instruction* constant = NULL;
1582 obj = apop(); 1582 obj = apop();
1583 ObjectType* obj_type = obj->type()->as_ObjectType(); 1583 ObjectType* obj_type = obj->type()->as_ObjectType();
1584 if (obj_type->is_constant() && !PatchALot) { 1584 if (obj_type->is_constant() && !PatchALot) {
1585 ciObject* const_oop = obj_type->constant_value(); 1585 ciObject* const_oop = obj_type->constant_value();
1586 if (!const_oop->is_null_object()) { 1586 if (!const_oop->is_null_object() && const_oop->is_loaded()) {
1587 if (field->is_constant()) { 1587 if (field->is_constant()) {
1588 ciConstant field_val = field->constant_value_of(const_oop); 1588 ciConstant field_val = field->constant_value_of(const_oop);
1589 BasicType field_type = field_val.basic_type(); 1589 BasicType field_type = field_val.basic_type();
1590 switch (field_type) { 1590 switch (field_type) {
1591 case T_ARRAY: 1591 case T_ARRAY: