We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7e1499 commit a3f150eCopy full SHA for a3f150e
kotlinx-coroutines-core/native/src/Debug.kt
@@ -4,11 +4,12 @@
4
5
package kotlinx.coroutines
6
7
-private var counter = 0
+import kotlin.math.*
8
9
-internal actual val Any.hexAddress: String
10
- get() {
11
- return "<not_implemented>" // :todo:
12
- }
+internal actual val Any.hexAddress: String get() = abs(id().let { if (it == Int.MIN_VALUE) 0 else it }).toString(16)
13
14
internal actual val Any.classSimpleName: String get() = this::class.simpleName ?: "Unknown"
+
+@SymbolName("Kotlin_Any_hashCode")
15
+external fun Any.id(): Int // Note: can return negative value on K/N
0 commit comments