Merge "Close file descriptors of ProfilerInfo"
This commit is contained in:
@@ -7145,6 +7145,9 @@ public class ActivityManagerService extends IActivityManager.Stub
|
||||
|
||||
if (profilerInfo != null && profilerInfo.profileFd != null) {
|
||||
profilerInfo.profileFd = profilerInfo.profileFd.dup();
|
||||
if (TextUtils.equals(mProfileApp, processName) && mProfilerInfo != null) {
|
||||
clearProfilerLocked();
|
||||
}
|
||||
}
|
||||
|
||||
// We deprecated Build.SERIAL and it is not accessible to
|
||||
@@ -7211,7 +7214,10 @@ public class ActivityManagerService extends IActivityManager.Stub
|
||||
mCoreSettingsObserver.getCoreSettingsLocked(),
|
||||
buildSerial);
|
||||
}
|
||||
|
||||
if (profilerInfo != null) {
|
||||
profilerInfo.closeFd();
|
||||
profilerInfo = null;
|
||||
}
|
||||
checkTime(startTime, "attachApplicationLocked: immediately after bindApplication");
|
||||
updateLruProcessLocked(app, false, null);
|
||||
checkTime(startTime, "attachApplicationLocked: after updateLruProcessLocked");
|
||||
|
||||
Reference in New Issue
Block a user