Mercurial > hg > graal-jvmci-8
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/oops/constMethod.hpp Tue Mar 26 15:20:05 2013 -0700 +++ b/src/share/vm/oops/constMethod.hpp Wed Mar 27 08:19:50 2013 -0400 @@ -441,6 +441,9 @@ return has_default_annotations() ? default_annotations()->length() : 0; } + // Copy annotations from other ConstMethod + void copy_annotations_from(ConstMethod* cm); + // byte codes void set_code(address code) { if (code_size() > 0) {