--- old/src/hotspot/share/oops/method.hpp 2019-04-25 11:54:14.614822004 +0200 +++ new/src/hotspot/share/oops/method.hpp 2019-04-25 11:54:13.890797620 +0200 @@ -463,7 +463,14 @@ address verified_code_entry(); bool check_code() const; // Not inline to avoid circular ref CompiledMethod* volatile code() const; - void clear_code(bool acquire_lock = true); // Clear out any compiled code + + static void unlink_code(Method *method, CompiledMethod *compare); + static void unlink_code(Method *method); + +private: + void locked_unlink_code(); + +public: static void set_code(const methodHandle& mh, CompiledMethod* code); void set_adapter_entry(AdapterHandlerEntry* adapter) { constMethod()->set_adapter_entry(adapter);