< prev index next >

src/share/vm/oops/method.cpp

Print this page




  86   set_intrinsic_id(vmIntrinsics::_none);
  87   set_jfr_towrite(false);
  88   set_force_inline(false);
  89   set_hidden(false);
  90   set_dont_inline(false);
  91   set_has_injected_profile(false);
  92   set_method_data(NULL);
  93   clear_method_counters();
  94   set_vtable_index(Method::garbage_vtable_index);
  95 
  96   // Fix and bury in Method*
  97   set_interpreter_entry(NULL); // sets i2i entry and from_int
  98   set_adapter_entry(NULL);
  99   clear_code(); // from_c/from_i get set to c2i/i2i
 100 
 101   if (access_flags.is_native()) {
 102     clear_native_function();
 103     set_signature_handler(NULL);
 104   }
 105 

 106   NOT_PRODUCT(set_compiled_invocation_count(0);)
 107 }
 108 
 109 // Release Method*.  The nmethod will be gone when we get here because
 110 // we've walked the code cache.
 111 void Method::deallocate_contents(ClassLoaderData* loader_data) {
 112   MetadataFactory::free_metadata(loader_data, constMethod());
 113   set_constMethod(NULL);
 114   MetadataFactory::free_metadata(loader_data, method_data());
 115   set_method_data(NULL);
 116   MetadataFactory::free_metadata(loader_data, method_counters());
 117   clear_method_counters();
 118   // The nmethod will be gone when we get here.
 119   if (code() != NULL) _code = NULL;
 120 }
 121 
 122 address Method::get_i2c_entry() {
 123   assert(_adapter != NULL, "must have");
 124   return _adapter->get_i2c_entry();
 125 }




  86   set_intrinsic_id(vmIntrinsics::_none);
  87   set_jfr_towrite(false);
  88   set_force_inline(false);
  89   set_hidden(false);
  90   set_dont_inline(false);
  91   set_has_injected_profile(false);
  92   set_method_data(NULL);
  93   clear_method_counters();
  94   set_vtable_index(Method::garbage_vtable_index);
  95 
  96   // Fix and bury in Method*
  97   set_interpreter_entry(NULL); // sets i2i entry and from_int
  98   set_adapter_entry(NULL);
  99   clear_code(); // from_c/from_i get set to c2i/i2i
 100 
 101   if (access_flags.is_native()) {
 102     clear_native_function();
 103     set_signature_handler(NULL);
 104   }
 105 
 106   set_accessor_field_name(0);
 107   NOT_PRODUCT(set_compiled_invocation_count(0);)
 108 }
 109 
 110 // Release Method*.  The nmethod will be gone when we get here because
 111 // we've walked the code cache.
 112 void Method::deallocate_contents(ClassLoaderData* loader_data) {
 113   MetadataFactory::free_metadata(loader_data, constMethod());
 114   set_constMethod(NULL);
 115   MetadataFactory::free_metadata(loader_data, method_data());
 116   set_method_data(NULL);
 117   MetadataFactory::free_metadata(loader_data, method_counters());
 118   clear_method_counters();
 119   // The nmethod will be gone when we get here.
 120   if (code() != NULL) _code = NULL;
 121 }
 122 
 123 address Method::get_i2c_entry() {
 124   assert(_adapter != NULL, "must have");
 125   return _adapter->get_i2c_entry();
 126 }


< prev index next >