src/hotspot/share/classfile/systemDictionary.hpp
changeset 48538 82c3d4173a53
parent 48514 9608f7f41c4e
parent 48463 474cec233fb2
child 48637 7bba05746c44
--- a/src/hotspot/share/classfile/systemDictionary.hpp	Sun Jan 14 21:46:14 2018 -0800
+++ b/src/hotspot/share/classfile/systemDictionary.hpp	Tue Jan 16 22:24:20 2018 +0000
@@ -654,6 +654,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);