commit | 0ff6541b74538c0323f615b9d8b1cd3a8e8f6d52 | [log] [tgz] |
---|---|---|
author | Rick Yiu <rickyiu@google.com> | Mon Jan 24 10:57:09 2022 +0800 |
committer | Wei Wang <wvw@google.com> | Mon Jan 31 21:05:27 2022 +0000 |
tree | cf2fec55e43e2dfd9091ebc49fa8762224acfddb | |
parent | 484a35da12af856b52d3f6a2958bf140e6bf7a45 [diff] |
Use SetProcessProfilesCached in android_os_Process_setProcessGroup Currently, android_os_Process_setProcessGroup uses SetTaskProfiles for each thread of a process when switching group, which will hold lock each time. Replace it with SetProcessProfilesCached so that it only does it once. Bug: 215557553 Test: cgroup migrates as expected Change-Id: I0ebb031a395932c269e88e52faed1661bbf8420a