diff -r 3db45569f8c0 -r 9db149412e0e hotspot/src/share/vm/oops/instanceKlass.cpp --- a/hotspot/src/share/vm/oops/instanceKlass.cpp Wed Dec 19 10:35:08 2012 -0800 +++ b/hotspot/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); }