--- a/src/hotspot/share/oops/oopsHierarchy.hpp Fri Sep 13 07:43:59 2019 +0200
+++ b/src/hotspot/share/oops/oopsHierarchy.hpp Tue Sep 17 09:51:02 2019 +0200
@@ -100,9 +100,9 @@
// General access
oopDesc* operator->() const { return obj(); }
- bool operator==(const oop o) const;
+ bool operator==(const oop o) const { return obj() == o.obj(); }
bool operator==(void *p) const { return obj() == p; }
- bool operator!=(const volatile oop o) const;
+ bool operator!=(const volatile oop o) const { return obj() != o.obj(); }
bool operator!=(void *p) const { return obj() != p; }
// Assignment