Avoid signed integer overflow in identity hash code.
Caught by -ftrapv.
Change-Id: Ib8dbb31440ccce88a3c3ce7ea3b2394621616eff
diff --git a/runtime/mirror/object.h b/runtime/mirror/object.h
index b2b2420..0ce5231 100644
--- a/runtime/mirror/object.h
+++ b/runtime/mirror/object.h
@@ -451,7 +451,7 @@
}
// Generate an identity hash code.
- static int32_t GenerateIdentityHashCode();
+ static uint32_t GenerateIdentityHashCode();
// A utility function that copies an object in a read barrier and
// write barrier-aware way. This is internally used by Clone() and