hotspot/src/share/vm/code/pcDesc.hpp
changeset 4017 0cb087a2b9a9
parent 3686 69c1b5228547
child 4564 55dfb20908d0
--- a/hotspot/src/share/vm/code/pcDesc.hpp	Tue Oct 13 22:32:31 2009 -0700
+++ b/hotspot/src/share/vm/code/pcDesc.hpp	Wed Oct 14 10:36:57 2009 -0700
@@ -39,6 +39,7 @@
     struct {
       unsigned int reexecute: 1;
     } bits;
+    bool operator ==(const PcDescFlags& other) { return word == other.word; }
   } _flags;
 
  public:
@@ -64,6 +65,13 @@
   bool     should_reexecute()              const { return _flags.bits.reexecute; }
   void set_should_reexecute(bool z)              { _flags.bits.reexecute = z;    }
 
+  // Does pd refer to the same information as pd?
+  bool is_same_info(const PcDesc* pd) {
+    return _scope_decode_offset == pd->_scope_decode_offset &&
+      _obj_decode_offset == pd->_obj_decode_offset &&
+      _flags == pd->_flags;
+  }
+
   // Returns the real pc
   address real_pc(const nmethod* code) const;