[6.2.0][MemoryLeakFix] 优化代码逻辑
This commit is contained in:
@@ -43,6 +43,8 @@ internal class AccessSyntheticUtils {
|
|||||||
private val fields = ConcurrentHashMap<String, WeakReference<Any>>()
|
private val fields = ConcurrentHashMap<String, WeakReference<Any>>()
|
||||||
private val observers = ConcurrentSet<String>()
|
private val observers = ConcurrentSet<String>()
|
||||||
|
|
||||||
|
// true: 代表要执行原来的run方法体
|
||||||
|
// false: 代表不执行原来的run方法体
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun isTargetAlive(obj: Any): Boolean {
|
fun isTargetAlive(obj: Any): Boolean {
|
||||||
try {
|
try {
|
||||||
@@ -118,9 +120,7 @@ internal class AccessSyntheticUtils {
|
|||||||
}
|
}
|
||||||
ret
|
ret
|
||||||
} ?: true
|
} ?: true
|
||||||
} catch (t: Throwable) {
|
} catch (ignore: Throwable) { }
|
||||||
t.printStackTrace()
|
|
||||||
}
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user