comparison src/share/vm/oops/constMethod.hpp @ 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 c8b31b461e1a
children fdde6a70ea85
comparison
equal deleted inserted replaced
8823:23f2d309e855 8837:0c3ee6f1fa23
439 } 439 }
440 int default_annotations_length() const { 440 int default_annotations_length() const {
441 return has_default_annotations() ? default_annotations()->length() : 0; 441 return has_default_annotations() ? default_annotations()->length() : 0;
442 } 442 }
443 443
444 // Copy annotations from other ConstMethod
445 void copy_annotations_from(ConstMethod* cm);
446
444 // byte codes 447 // byte codes
445 void set_code(address code) { 448 void set_code(address code) {
446 if (code_size() > 0) { 449 if (code_size() > 0) {
447 memcpy(code_base(), code, code_size()); 450 memcpy(code_base(), code, code_size());
448 } 451 }