hotspot/src/share/vm/oops/symbol.cpp
changeset 31616 01c68517607d
parent 31614 f60b185e0bdf
child 32357 43087bc6dd04
--- a/hotspot/src/share/vm/oops/symbol.cpp	Mon Jun 29 13:48:55 2015 -0700
+++ b/hotspot/src/share/vm/oops/symbol.cpp	Tue Jun 30 09:39:53 2015 -0700
@@ -35,7 +35,7 @@
 Symbol::Symbol(const u1* name, int length, int refcount) {
   _refcount = refcount;
   _length = length;
-  _identity_hash = (short)os::random();
+  _identity_hash = os::random();
   for (int i = 0; i < _length; i++) {
     byte_at_put(i, name[i]);
   }