hotspot/src/share/vm/oops/constMethod.cpp
changeset 15935 50da9e5eb858
parent 15931 c4fc378a132b
child 16588 7e90e795813e
equal deleted inserted replaced
15934:104ff83451f1 15935:50da9e5eb858
    65   set_max_locals(0);
    65   set_max_locals(0);
    66   set_method_idnum(0);
    66   set_method_idnum(0);
    67   set_size_of_parameters(0);
    67   set_size_of_parameters(0);
    68 }
    68 }
    69 
    69 
       
    70 // Accessor that copies to metadata.
       
    71 void ConstMethod::copy_stackmap_data(ClassLoaderData* loader_data,
       
    72                                      u1* sd, int length, TRAPS) {
       
    73   _stackmap_data = MetadataFactory::new_array<u1>(loader_data, length, CHECK);
       
    74   memcpy((void*)_stackmap_data->adr_at(0), (void*)sd, length);
       
    75 }
    70 
    76 
    71 // Deallocate metadata fields associated with ConstMethod*
    77 // Deallocate metadata fields associated with ConstMethod*
    72 void ConstMethod::deallocate_contents(ClassLoaderData* loader_data) {
    78 void ConstMethod::deallocate_contents(ClassLoaderData* loader_data) {
    73   if (stackmap_data() != NULL) {
    79   if (stackmap_data() != NULL) {
    74     MetadataFactory::free_array<u1>(loader_data, stackmap_data());
    80     MetadataFactory::free_array<u1>(loader_data, stackmap_data());