8221748: Remove unused oopDesc::is_unlocked_oop()
authorpliden
Tue, 02 Apr 2019 10:04:35 +0200
changeset 54377 35794e8db61b
parent 54376 2a2fab6fb3a5
child 54378 7c576e4d0afa
8221748: Remove unused oopDesc::is_unlocked_oop() Reviewed-by: kbarrett
src/hotspot/share/oops/oop.cpp
src/hotspot/share/oops/oop.hpp
--- a/src/hotspot/share/oops/oop.cpp	Tue Apr 02 10:04:25 2019 +0200
+++ b/src/hotspot/share/oops/oop.cpp	Tue Apr 02 10:04:35 2019 +0200
@@ -122,12 +122,6 @@
 }
 
 #ifndef PRODUCT
-// used only for asserts
-bool oopDesc::is_unlocked_oop() const {
-  if (!Universe::heap()->is_in_reserved(this)) return false;
-  return mark()->is_unlocked();
-}
-
 #if INCLUDE_CDS_JAVA_HEAP
 bool oopDesc::is_archived_object(oop p) {
   return HeapShared::is_archived_object(p);
--- a/src/hotspot/share/oops/oop.hpp	Tue Apr 02 10:04:25 2019 +0200
+++ b/src/hotspot/share/oops/oop.hpp	Tue Apr 02 10:04:35 2019 +0200
@@ -256,7 +256,6 @@
   static bool is_oop(oop obj, bool ignore_mark_word = false);
   static bool is_oop_or_null(oop obj, bool ignore_mark_word = false);
 #ifndef PRODUCT
-  inline bool is_unlocked_oop() const;
   static bool is_archived_object(oop p) NOT_CDS_JAVA_HEAP_RETURN_(false);
 #endif