Register the UI Thread as a sensitive thread to the runtime

Bug: 27865109
Bug: 28065407
Change-Id: I46194d444530770f505ac5e653536be2da7dd08b
This commit is contained in:
Calin Juravle
2016-04-12 14:12:04 +01:00
parent 6e49a7fc6d
commit 8f5770dcdb

View File

@@ -5045,6 +5045,8 @@ public final class ActivityThread {
}
private void handleBindApplication(AppBindData data) {
// Register the UI Thread as a sensitive thread to the runtime.
VMRuntime.registerSensitiveThread();
if (data.trackAllocation) {
DdmVmInternal.enableRecentAllocations(true);
}