--- 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 @@ -1101,10 +1101,10 @@ // 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;