comparison src/share/vm/oops/method.cpp @ 8837:0c3ee6f1fa23

8009531: Crash when redefining class with annotated method Summary: Neglected to copy the annotations in clone_with_new_data when they were moved to ConstMethod. Reviewed-by: acorn, sspitsyn, dcubed
author coleenp
date Wed, 27 Mar 2013 08:19:50 -0400
parents 1fc4d4768b90
children 0ca3dd0ffaba
comparison
equal deleted inserted replaced
8823:23f2d309e855 8837:0c3ee6f1fa23
1168 memcpy((void*)stackmap_data->adr_at(0), 1168 memcpy((void*)stackmap_data->adr_at(0),
1169 (void*)m->stackmap_data()->adr_at(0), code_attribute_length); 1169 (void*)m->stackmap_data()->adr_at(0), code_attribute_length);
1170 newm->set_stackmap_data(stackmap_data); 1170 newm->set_stackmap_data(stackmap_data);
1171 } 1171 }
1172 1172
1173 // copy annotations over to new method
1174 newcm->copy_annotations_from(cm);
1173 return newm; 1175 return newm;
1174 } 1176 }
1175 1177
1176 vmSymbols::SID Method::klass_id_for_intrinsics(Klass* holder) { 1178 vmSymbols::SID Method::klass_id_for_intrinsics(Klass* holder) {
1177 // if loader is not the default loader (i.e., != NULL), we can't know the intrinsics 1179 // if loader is not the default loader (i.e., != NULL), we can't know the intrinsics