comparison src/share/vm/oops/annotations.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 da91efe96a93
children 16fb9f942703
comparison
equal deleted inserted replaced
7456:7d42f3b08300 7457:35431a769282
59 } 59 }
60 free_contents(loader_data, fields_annotations()); 60 free_contents(loader_data, fields_annotations());
61 free_contents(loader_data, methods_annotations()); 61 free_contents(loader_data, methods_annotations());
62 free_contents(loader_data, methods_parameter_annotations()); 62 free_contents(loader_data, methods_parameter_annotations());
63 free_contents(loader_data, methods_default_annotations()); 63 free_contents(loader_data, methods_default_annotations());
64
65 // Recursively deallocate optional Annotations linked through this one
66 MetadataFactory::free_metadata(loader_data, type_annotations());
64 } 67 }
65 68
66 // Set the annotation at 'idnum' to 'anno'. 69 // Set the annotation at 'idnum' to 'anno'.
67 // We don't want to create or extend the array if 'anno' is NULL, since that is the 70 // We don't want to create or extend the array if 'anno' is NULL, since that is the
68 // default value. However, if the array exists and is long enough, we must set NULL values. 71 // default value. However, if the array exists and is long enough, we must set NULL values.