--- 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