src/hotspot/share/oops/method.hpp
changeset 55479 80b27dc96ca3
parent 55206 2fe2063fe567
child 55749 cff8aad2593f
--- a/src/hotspot/share/oops/method.hpp	Mon Jun 24 16:51:23 2019 -0400
+++ b/src/hotspot/share/oops/method.hpp	Mon Jun 24 22:38:17 2019 -0400
@@ -463,17 +463,7 @@
   address verified_code_entry();
   bool check_code() const;      // Not inline to avoid circular ref
   CompiledMethod* volatile code() const;
-
-  // Locks CompiledMethod_lock if not held.
-  void unlink_code(CompiledMethod *compare);
-  // Locks CompiledMethod_lock if not held.
-  void unlink_code();
-
-private:
-  // Either called with CompiledMethod_lock held or from constructor.
-  void clear_code();
-
-public:
+  void clear_code(bool acquire_lock = true);    // Clear out any compiled code
   static void set_code(const methodHandle& mh, CompiledMethod* code);
   void set_adapter_entry(AdapterHandlerEntry* adapter) {
     constMethod()->set_adapter_entry(adapter);