equal
deleted
inserted
replaced
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()); |