Skip to content
🤔 Documentation issue? Report it

//leakcanary/shark/identityHashCode

identityHashCode

val HeapObject.HeapInstance.identityHashCode: Int?

The system identity hash code, or null if it couldn’t be found.

Based on the Object.identityHashCode implementation in AOSP.

Backing field shadow$monitor was added in API 24. https://cs.android.com/android/_/android/platform/libcore/+ /de626ec8a109ea18283d96c720cc57e2f32f67fa:ojluni/src/main/java/java/lang/Object.java; dlc=ba7cc9f5357c323a1006119a20ce025fd4c57fd2