< prev index next >

src/share/vm/utilities/nativeCallStack.hpp

Print this page
rev 7876 : [mq]: nmtfix

@@ -55,11 +55,11 @@
  public:
   static const NativeCallStack EMPTY_STACK;
 
  private:
   address   _stack[NMT_TrackingStackDepth];
-  int       _hash_value;
+  unsigned int  _hash_value;
 
  public:
   NativeCallStack(int toSkip = 0, bool fillStack = false);
   NativeCallStack(address* pc, int frameCount);
 

@@ -87,11 +87,11 @@
     assert(index >= 0 && index < NMT_TrackingStackDepth, "Index out of bound");
     return _stack[index];
   }
 
   // Hash code. Any better algorithm?
-  int hash() const;
+  unsigned int hash() const;
 
   void print_on(outputStream* out) const;
   void print_on(outputStream* out, int indent) const;
 };
 
< prev index next >