src/hotspot/share/classfile/systemDictionary.hpp
changeset 48463 474cec233fb2
parent 47774 69c081ca110a
child 48538 82c3d4173a53
child 48619 1703d83b3ffe
--- a/src/hotspot/share/classfile/systemDictionary.hpp	Fri Dec 15 16:51:13 2017 +0100
+++ b/src/hotspot/share/classfile/systemDictionary.hpp	Fri Dec 15 11:23:50 2017 -0500
@@ -649,6 +649,12 @@
   static bool is_platform_class_loader(oop class_loader);
   static void clear_invoke_method_table();
 
+  // Returns TRUE if the method is a non-public member of class java.lang.Object.
+  static bool is_nonpublic_Object_method(Method* m) {
+    assert(m != NULL, "Unexpected NULL Method*");
+    return !m->is_public() && m->method_holder() == SystemDictionary::Object_klass();
+  }
+
 protected:
   static InstanceKlass* find_shared_class(Symbol* class_name);