in kotlinx-coroutines-core/jvm/src/debug/internal/ConcurrentWeakMap.kt [91:104]
fun getImpl(key: K): V? {
var index = index(key.hashCode())
while (true) {
val w = keys[index].value ?: return null // not found
val k = w.get()
if (key == k) {
val value = values[index].value
return (if (value is Marked) value.ref else value) as V?
}
if (k == null) removeCleanedAt(index) // weak ref was here, but collected
if (index == 0) index = allocated
index--
}
}