src/share/vm/oops/method.hpp

Print this page

        

@@ -686,10 +686,17 @@
   void set_is_old()                                 { _access_flags.set_is_old(); }
   bool is_obsolete() const                          { return access_flags().is_obsolete(); }
   void set_is_obsolete()                            { _access_flags.set_is_obsolete(); }
   bool is_deleted() const                           { return access_flags().is_deleted(); }
   void set_is_deleted()                             { _access_flags.set_is_deleted(); }
+
+  bool is_emcp() const {
+    // emcp methods (equivalent method except constant pool is different) are methods
+    // that are old but not obsolete or deleted.
+    return is_old() && !(is_obsolete() || is_deleted());
+  }
+
   bool on_stack() const                             { return access_flags().on_stack(); }
   void set_on_stack(const bool value);
 
   // see the definition in Method*.cpp for the gory details
   bool should_not_be_cached() const;