src/hotspot/share/oops/method.hpp
changeset 55005 9b70ebd131b4
parent 54927 1512d88b24c6
child 55105 9ad765641e8f
child 58678 9cf78a70fa4f
equal deleted inserted replaced
55004:4645b6d57f54 55005:9b70ebd131b4
   461 
   461 
   462   // nmethod/verified compiler entry
   462   // nmethod/verified compiler entry
   463   address verified_code_entry();
   463   address verified_code_entry();
   464   bool check_code() const;      // Not inline to avoid circular ref
   464   bool check_code() const;      // Not inline to avoid circular ref
   465   CompiledMethod* volatile code() const;
   465   CompiledMethod* volatile code() const;
   466   void clear_code(bool acquire_lock = true);    // Clear out any compiled code
   466 
       
   467   // Locks CompiledMethod_lock if not held.
       
   468   void unlink_code(CompiledMethod *compare);
       
   469   // Locks CompiledMethod_lock if not held.
       
   470   void unlink_code();
       
   471 
       
   472 private:
       
   473   // Either called with CompiledMethod_lock held or from constructor.
       
   474   void clear_code();
       
   475 
       
   476 public:
   467   static void set_code(const methodHandle& mh, CompiledMethod* code);
   477   static void set_code(const methodHandle& mh, CompiledMethod* code);
   468   void set_adapter_entry(AdapterHandlerEntry* adapter) {
   478   void set_adapter_entry(AdapterHandlerEntry* adapter) {
   469     constMethod()->set_adapter_entry(adapter);
   479     constMethod()->set_adapter_entry(adapter);
   470   }
   480   }
   471   void set_adapter_trampoline(AdapterHandlerEntry** trampoline) {
   481   void set_adapter_trampoline(AdapterHandlerEntry** trampoline) {