src/share/vm/opto/memnode.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/opto/memnode.cpp	Mon Feb 21 14:15:27 2011
--- new/src/share/vm/opto/memnode.cpp	Mon Feb 21 14:15:27 2011

*** 1099,1112 **** --- 1099,1112 ---- assert(field->is_constant(), "what?"); ciObjArray* array = field->constant_value().as_object()->as_obj_array(); // Fetch the box object at the base of the array and get its value ciInstance* box = array->obj_at(0)->as_instance(); ciInstanceKlass* ik = box->klass()->as_instance_klass(); ! if (ik->nof_nonstatic_fields() == 1) { ! if (ik->nonstatic_fields()->length() == 1) { // This should be true nonstatic_field_at requires calling // nof_nonstatic_fields so check it anyway ! ciConstant c = box->field_value(ik->nonstatic_field_at(0)); ! ciConstant c = box->field_value(ik->nonstatic_fields()->at(0)); cache_offset = c.as_int(); } return true; } }

src/share/vm/opto/memnode.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File