hotspot/src/share/vm/oops/annotations.cpp
changeset 15097 9db149412e0e
parent 13728 882756847a04
child 15437 eabd4555d072
equal deleted inserted replaced
15096:3db45569f8c0 15097:9db149412e0e
    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.