Merge "Register the UI Thread as a sensitive thread to the runtime" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6aff67bfcb
@@ -5045,6 +5045,8 @@ public final class ActivityThread {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void handleBindApplication(AppBindData data) {
|
private void handleBindApplication(AppBindData data) {
|
||||||
|
// Register the UI Thread as a sensitive thread to the runtime.
|
||||||
|
VMRuntime.registerSensitiveThread();
|
||||||
if (data.trackAllocation) {
|
if (data.trackAllocation) {
|
||||||
DdmVmInternal.enableRecentAllocations(true);
|
DdmVmInternal.enableRecentAllocations(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user