diff src/share/vm/prims/jvmtiTagMap.cpp @ 12316:190899198332

7195622: CheckUnhandledOops has limited usefulness now Summary: Enable CHECK_UNHANDLED_OOPS in fastdebug builds across all supported platforms. Reviewed-by: coleenp, hseigel, dholmes, stefank, twisti, ihse, rdurbin Contributed-by: lois.foltan@oracle.com
author hseigel
date Thu, 26 Sep 2013 10:25:02 -0400
parents 92ef81e2f571
children c86519f8d826 2c6ef90f030a
line wrap: on
line diff
--- a/src/share/vm/prims/jvmtiTagMap.cpp	Wed Sep 25 17:47:51 2013 +0200
+++ b/src/share/vm/prims/jvmtiTagMap.cpp	Thu Sep 26 10:25:02 2013 -0400
@@ -165,7 +165,7 @@
   static unsigned int hash(oop key, int size) {
     // shift right to get better distribution (as these bits will be zero
     // with aligned addresses)
-    unsigned int addr = (unsigned int)((intptr_t)key);
+    unsigned int addr = (unsigned int)(cast_from_oop<intptr_t>(key));
 #ifdef _LP64
     return (addr >> 3) % size;
 #else