Mercurial > hg > truffle
diff src/share/vm/oops/instanceKlass.cpp @ 7457:35431a769282
8004823: Add VM support for type annotation reflection
Reviewed-by: dholmes, coleenp
Contributed-by: joel.franck@oracle.com
author | stefank |
---|---|
date | Thu, 20 Dec 2012 10:22:19 +0100 |
parents | f34d701e952e |
children | cc6a617fffd2 |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp Wed Dec 19 10:35:08 2012 -0800 +++ b/src/share/vm/oops/instanceKlass.cpp Thu Dec 20 10:22:19 2012 +0100 @@ -361,6 +361,9 @@ set_protection_domain(NULL); set_signers(NULL); set_init_lock(NULL); + + // We should deallocate the Annotations instance + MetadataFactory::free_metadata(loader_data, annotations()); set_annotations(NULL); }