diff options
| author | 2022-01-24 10:57:09 +0800 | |
|---|---|---|
| committer | 2022-01-31 21:05:27 +0000 | |
| commit | 0ff6541b74538c0323f615b9d8b1cd3a8e8f6d52 (patch) | |
| tree | cf2fec55e43e2dfd9091ebc49fa8762224acfddb /api/api.go | |
| 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
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions