Nikolay Kasyanov
05/12/2022, 12:01 PMAny?.identityHashCode()
in Native uses object’s memory address only, unlike JVM, where a piece of random data could be used, making identityHashCode
unique even if two objects happen to be allocated at the same memory address during app’s lifetime.
Would it make sense to file this as a bug (it’s a noticeable discrepancy with JVM, after all) or is it a conscious decision to have this implementation in Native?ephemient
05/12/2022, 12:09 PMNikolay Kasyanov
05/12/2022, 2:04 PM