hotspot/src/share/vm/code/dependencies.hpp
changeset 23187 0f438571f278
parent 22921 ee35d5c0b1dc
child 25936 9b693ed74c13
--- a/hotspot/src/share/vm/code/dependencies.hpp	Fri Feb 28 09:30:20 2014 -0800
+++ b/hotspot/src/share/vm/code/dependencies.hpp	Mon Mar 03 08:04:14 2014 +0100
@@ -527,7 +527,7 @@
 };
 
 
-class DependencySignature : public GenericHashtableEntry<DependencySignature, ResourceObj> {
+class DependencySignature : public ResourceObj {
  private:
   int                   _args_count;
   uintptr_t             _argument_hash[Dependencies::max_arg_count];
@@ -542,12 +542,13 @@
     }
   }
 
-  bool equals(DependencySignature* sig) const;
-  uintptr_t key() const { return _argument_hash[0] >> 2; }
+  static bool     equals(DependencySignature const& s1, DependencySignature const& s2);
+  static unsigned hash  (DependencySignature const& s1) { return s1.arg(0) >> 2; }
 
   int args_count()             const { return _args_count; }
   uintptr_t arg(int idx)       const { return _argument_hash[idx]; }
   Dependencies::DepType type() const { return _type; }
+
 };