Remove ResourcesManager Slog.wtf

LoadedApk.updateApplicationInfo can call getResources while holding the
ResourcesManager lock. Remove the wtf and replace it wuth a debug
warning.

Bug: 165367316
Change-Id: I734688edd4e1d218fd0e2438b47ee05e477aa79f
Test: presubmit
This commit is contained in:
Ryan Mitchell
2020-08-18 21:43:28 +00:00
parent 93a9e276a3
commit e3838e88bd

View File

@@ -825,8 +825,8 @@ public class ResourcesManager {
Trace.traceBegin(Trace.TRACE_TAG_RESOURCES,
"ResourcesManager#createApkAssetsSupplierNotLocked");
try {
if (Thread.holdsLock(this)) {
Slog.wtf(TAG, "Calling thread " + Thread.currentThread().getName()
if (DEBUG && Thread.holdsLock(this)) {
Slog.w(TAG, "Calling thread " + Thread.currentThread().getName()
+ " is holding mLock", new Throwable());
}